innmind/immutable
Innmind/Immutable provides persistent, immutable collections for PHP, including sequences, sets, maps, and streams. It offers a functional API with lazy operations, structural sharing, and type-safe wrappers for predictable, side-effect-free data manipulation.
innmind/immutable is a PHP primitives-wrapper library, not a Laravel-specific package. It fits best as a tactical dependency at domain boundaries: value objects, DTOs, read models, command/event payloads, config snapshots, and immutable identifiers. It should not become a framework-wide replacement for Eloquent models, Laravel collections, or request validation objects.How can I help you explore Laravel packages today?