Download the PHP package webtheory/collection without Composer
On this page you can find all versions of the php package webtheory/collection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webtheory/collection
More information about webtheory/collection
Files in webtheory/collection
Package collection
Short Description Create typed collections and defer logic to collection kernel
License MIT
Homepage https://github.com/spider-mane/collection
Informations about the package collection
Collection
A message to Russian 🇷🇺 people
If you currently live in Russia, please read this message.
Purpose
This package facilitates the creation of typed collections without having to duplicate underlying logic. Due to PHP's enforcement of Liskov Substitution Principle via method covariance and contravariance, it's not possible to create a natively typed collection using inheritance so long as you need methods that operate on specific types. This package provides a configurable 'collection kernel' class that stores and performs operations on a given array. Rather than inheritance, this paradigm uses composition to fulfil basic collection functionality. Besides enabling strong typing, one of the many benefits of this approach is that you have complete control over the operations to be exposed by your collections.
Installation
Via Composer
Usage
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Chris Williams
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of collection with dependencies
symfony/polyfill-php80 Version ^1.23
symfony/polyfill-php81 Version ^1.23