hypervel / collections
The Hypervel Collections package.
Requires
- php: ^8.4
- ext-filter: *
- hypervel/conditionable: ^0.4
- hypervel/contracts: ^0.4
- hypervel/macroable: ^0.4
- symfony/polyfill-php85: ^1.36
- symfony/polyfill-php86: ^1.36
Requires (Dev)
None
Suggests
- hypervel/http: Required to convert collections to API resources (^0.4).
- symfony/var-dumper: Required to use the dump method (^8.1).
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-27 07:29:31 UTC
README
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.