vcollect 是一个PHP C 扩展,提供流畅、便利的数组数据操作。
定位于PHP下的ext目录,执行
- https://github.com/viest/php-ext-collection
在扩展目录内,执行
- phpize
- ./configure
- make && make install
在 php.ini 文件中加入 extension = collection.so
- $collection = \Vtiful\Kernel\Collection::init([1]);
github 地址:https://github.com/viest/php-ext-collection