Registry / utility / cakephp-collection

cakephp-collection

JSON →
library5.3.6phppackagistunverified

Work easily with arrays and iterators by having a battery of utility traversal methods

composer require cakephp/collection
INSTALL
IMPORT
SIG · CAKEPHP-COLLECTION
C
cakephp-collection
utilityphpv5.3.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Collection
use Cake\Collection\Collection;

Create a collection and filter elements

use Cake\Collection\Collection; $items = new Collection([1, 2, 3, 4, 5]); $result = $items->filter(function ($item) { return $item > 2; })->toList(); print_r($result);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.3.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cakephp-collection — pip install cakephp-collection · libregistry