Collection

Package pckg/collection provides a ways handle collection of items / arrays and strings easily.

Installation

For standalone usage simply require pckg/collection with Composer.

$ composer require pckg/collection

Usage

Collect array or object with collect() function or instantiate new Collection object.

$collection = collect([]);

See more examples in pckg/collection repository at GitHub.

Last updated

Was this helpful?