Registry / utility / ramsey-collection

ramsey-collection

JSON →
library2.1.1phppackagistunverified

A PHP library for representing and manipulating collections.

composer require ramsey/collection
INSTALL
IMPORT
SIG · RAMSEY-COLLECTION
R
ramsey-collection
utilityphpv2.1.1
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 Ramsey\Collection\Collection;

Create a typed collection and add elements

use Ramsey\Collection\Collection; $collection = new Collection('int', [1, 2, 3]); $collection->add(4);
Debug
Known issues
breakingRequires PHP 8.0+ for typed collections
fix
Use PHP 8.0 or later, or use untyped collections with older versions
affects: >=2.0.0
Upgrade
Version history
2.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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