A PHP library for representing and manipulating collections.
ramsey/collection is a PHP 7.2+ library for representing and manipulating collections.
Much inspiration for this library came from the Java Collections Framework.
This project adheres to a code of conduct. By participating in this project and its community, you are expected to uphold this code.
Install this package as a dependency using Composer.
composer require ramsey/collection
Examples of how to use this framework can be found in the Wiki pages.
Contributions are welcome! Before contributing to this project, familiarize yourself with CONTRIBUTING.md.
After cloning this repository locally, execute the following commands:
cd /path/to/repository composer install
Now, you are ready to develop!
Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read SECURITY.md for instructions on submitting a vulnerability report.
Available as part of the Tidelift Subscription.
The maintainers of ramsey/collection and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.