Registry / utility / doctrine-collections

doctrine-collections

JSON →
library3.1.0phppackagistunverified

A PHP library providing collection classes that extend PHP arrays with additional functionality.

composer require doctrine/collections
INSTALL
IMPORT
SIG · DOCTRINE-COLLECTIO
D
doctrine-collections
utilityphpv3.1.0
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.

ArrayCollection
use Doctrine\Common\Collections\ArrayCollection;

Create a collection and filter elements.

use Doctrine\Common\Collections\ArrayCollection; $collection = new ArrayCollection(['apple', 'banana', 'cherry']); $filtered = $collection->filter(function($item) { return str_starts_with($item, 'b'); }); echo $filtered->first(); // banana
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
doctrine-collections — pip install doctrine-collections · libregistry