Registry / utility / hyperf-collection

hyperf-collection

JSON →
library3.1.64phppackagistunverified

Hyperf Collection package which comes from illuminate/collections, providing a fluent interface for working with arrays of data.

composer require hyperf/collection
INSTALL
IMPORT
SIG · HYPERF-COLLECTION
H
hyperf-collection
utilityphpv3.1.64
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 Hyperf\Collection\Collection;

Create a collection and filter/sum its items.

use Hyperf\Collection\Collection; $collection = new Collection([1, 2, 3]); $filtered = $collection->filter(function ($value) { return $value > 1; }); echo $filtered->sum();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.64latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hyperf-collection — pip install hyperf-collection · libregistry