nkt / scalar
PHP标量方法
0.1.0
2014-11-24 23:40 UTC
Requires
- php: ~5.4
- ext-scalar_objects: *
This package is auto-updated.
Last update: 2024-09-04 12:20:51 UTC
README
PHP标量方法。
安装
安装nikic的伟大扩展scalar_objects,它允许使用标量对象的方法。
git clone git://github.com/nikic/scalar_objects.git
cd scalar_objects
phpize
./configure
make
sudo make install
然后将 nkt/scalar
添加到您的 composer.json
中。就是这样!
IDE
PHPStorm/IDEA 将标量识别为类(int、string等),因此我已添加存根,为这个库提供简单的代码补全。遗憾的是,array
是语法中的关键字,因此无法为其提供补全。