Download the PHP package izica/php-collection without Composer
On this page you can find all versions of the php package izica/php-collection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download izica/php-collection
More information about izica/php-collection
Files in izica/php-collection
Download izica/php-collection
More information about izica/php-collection
Files in izica/php-collection
Vendor izica
Package php-collection
Short Description Tools and utilities for working with arrays
License MIT
Package php-collection
Short Description Tools and utilities for working with arrays
License MIT
Please rate this library. Is it a good library?
Informations about the package php-collection
Php collection
inspired by Illuminate\Support\Collection and Lodash
Usage
Notice
Every method will returns new collection, not mutated collection;
Documentation
- collect
- implode OR join
- pluck
- only
- exclude
- filter
- map
- keyBy
- groupBy
- find
- some OR contains
- every
- sort
- values
- first
- last
- count
- all or toArray
- toJson
collect($array, $isSingleElement = false)
implode($array = ", ", $serializer = "") OR join($array = ", ", $serializer = "")
pluck($key)
only($keys)
exclude($keys)
filter(function($item))
map(function($item))
keyBy($key | function($item))
groupBy($key | function($item))
find(function($item))
some($value | function($item)) OR contains($value | function($item))
every(function($item))
sort(function($item))
sortBy($key, $asc = true)
values()
first()
last()
count()
all() OR toArray()
toJson()
zip()
TODO
dumpBrowser()
dump()
toCsv()
toXml()
shuffle()
random()
chunk()
unique("" | $key | function($item))
collapse()
diff($array)
has($key)
flip()
min("" | $key | function($item))
max("" | $key | function($item))
reduce($function)
All versions of php-collection with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package izica/php-collection contains the following files
Loading the files please wait ....