Last updated 2 years ago
Was this helpful?
Package provides a ways handle collection of items / arrays and strings easily.
For standalone usage simply require pckg/collection with Composer.
pckg/collection
$ composer require pckg/collection
Collect array or object with collect() function or instantiate new Collection object.
collect()
Collection
$collection = collect([]);
See more examples in repository at GitHub.