A PHP 7.2+ library for representing and manipulating collections.

Fund package maintenance!
Ko Fi

Installs: 4 905 529

Dependents: 14

Suggesters: 1

Security: 0

Stars: 278

Watchers: 7

Forks: 36

Open Issues: 11

1.0.1 2020-01-05 00:22 UTC

This package is auto-updated.

Last update: 2020-07-22 14:02:23 UTC


Source Code Latest Version Software License Build Status Coverage Status Total Downloads

ramsey/collection is a PHP 7.2+ library for representing and manipulating collections..

This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.


Much inspiration for this library came from the Java Collections Framework.


The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require ramsey/collection

API documentation

The latest class API documentation is available online.


Examples of how to use this framework can be found in the Wiki pages.


Contributions are welcome! Please read CONTRIBUTING for details.

Copyright and License

The ramsey/collection library is copyright © Ben Ramsey and licensed for use under the MIT License (MIT). Please see LICENSE for more information.