Download the PHP package selvinortiz/collective without Composer
On this page you can find all versions of the php package selvinortiz/collective. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download selvinortiz/collective
More information about selvinortiz/collective
Files in selvinortiz/collective
Download selvinortiz/collective
More information about selvinortiz/collective
Files in selvinortiz/collective
Vendor selvinortiz
Package collective
Short Description Simple collection implementation on top of native arrays
License MIT
Package collective
Short Description Simple collection implementation on top of native arrays
License MIT
Please rate this library. Is it a good library?
Informations about the package collective
Description
Collective is a lightweight library that allows you to interact with native arrays in a more flexible and elegant way. It is inpired by Laravel Collections and focused on performance.
Requirements
- PHP 5.5+
- Composer and selvinortiz/collective
Install
Test
Usage
Reference
get($key, $default = null)
set($key, $value)
count()
first(callable $callback = null, $default = null)
last(callable $callback = null, $default = null)
map(callable $callback, array $default = [])
Applies your callable to each item in the collection
filter(callable $callback = null, array $default = null)
Filters each item in the collection using your own callable
reduce(callable $callback, $initial = null)
Reduces a collection to a single value
reverse()
flatten($depth = INF)
then(callable $callback)
Chains functions not defined by the collection without breaking the pipe
License
Collective is open source software licensed under the MIT License
All versions of collective with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package selvinortiz/collective contains the following files
Loading the files please wait ....