Search by

hypervel / collections

albertchtbinaryfire

The Hypervel Collections package.

Package info

github.com/hypervel/collections

Issues

pkg:composer/hypervel/collections

Statistics

Installs: 5

Dependents: 3

Suggesters: 0

Stars: 0

0.4.x-dev 2026-10-26 02:26 UTC

This package is auto-updated.

Last update: 2026-10-27 07:29:31 UTC


README

Ask DeepWiki

Documentation: https://hypervel.org/docs/collections

Ported from: https://github.com/laravel/framework/tree/13.x/src/Illuminate/Collections

Differences From Laravel

Laravel's deprecated containsOneItem() and containsManyItems() aliases are intentionally not ported. Use hasSole() and hasMany() instead.

Enumerable::random() exposes the optional preserveKeys argument supported by both concrete collection implementations and reports the preserved key type accurately. Laravel exposes this argument only on the concrete classes and always reports integer keys through the contract.

Arr::push() accepts arrays only. Laravel also advertises ArrayAccess, but dot notation requires nested by-reference mutation that ArrayAccess cannot provide.