| 1 |
<h1 align="center">ramsey/collection</h1> |
| 2 |
|
| 3 |
<p align="center"> |
| 4 |
<strong>A PHP library for representing and manipulating collections.</strong> |
| 5 |
</p> |
| 6 |
|
| 7 |
<p align="center"> |
| 8 |
<a href="https://github.com/ramsey/collection"><img src="http://img.shields.io/badge/source-ramsey/collection-blue.svg?style=flat-square" alt="Source Code"></a> |
| 9 |
<a href="https://packagist.org/packages/ramsey/collection"><img src="https://img.shields.io/packagist/v/ramsey/collection.svg?style=flat-square&label=release" alt="Download Package"></a> |
| 10 |
<a href="https://php.net"><img src="https://img.shields.io/packagist/php-v/ramsey/collection.svg?style=flat-square&colorB=%238892BF" alt="PHP Programming Language"></a> |
| 11 |
<a href="https://github.com/ramsey/collection/blob/master/LICENSE"><img src="https://img.shields.io/packagist/l/ramsey/collection.svg?style=flat-square&colorB=darkcyan" alt="Read License"></a> |
| 12 |
<a href="https://github.com/ramsey/collection/actions/workflows/continuous-integration.yml"><img src="https://img.shields.io/github/actions/workflow/status/ramsey/collection/continuous-integration.yml?branch=main&logo=github&style=flat-square" alt="Build Status"></a> |
| 13 |
<a href="https://codecov.io/gh/ramsey/collection"><img src="https://img.shields.io/codecov/c/gh/ramsey/collection?label=codecov&logo=codecov&style=flat-square" alt="Codecov Code Coverage"></a> |
| 14 |
<a href="https://shepherd.dev/github/ramsey/collection"><img src="https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fshepherd.dev%2Fgithub%2Framsey%2Fcollection%2Fcoverage" alt="Psalm Type Coverage"></a> |
| 15 |
</p> |
| 16 |
|
| 17 |
## About |
| 18 |
|
| 19 |
ramsey/collection is a PHP library for representing and manipulating collections. |
| 20 |
|
| 21 |
Much inspiration for this library came from the [Java Collections Framework][java]. |
| 22 |
|
| 23 |
This project adheres to a [](CODE_OF_CONDUCT.mdcode of conduct](CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). |
| 24 |
By participating in this project and its community, you are expected to |
| 25 |
uphold this code. |
| 26 |
|
| 27 |
## Installation |
| 28 |
|
| 29 |
Install this package as a dependency using [](https://getcomposer.orgComposer](https://getcomposer.org](https://getcomposer.org). |
| 30 |
|
| 31 |
``` bash |
| 32 |
composer require ramsey/collection |
| 33 |
``` |
| 34 |
|
| 35 |
## Usage |
| 36 |
|
| 37 |
Examples of how to use this library may be found in the |
| 38 |
[](https://github.com/ramsey/collection/wiki/ExamplesWiki pages](https://github.com/ramsey/collection/wiki/Examples](https://github.com/ramsey/collection/wiki/Examples). |
| 39 |
|
| 40 |
## Contributing |
| 41 |
|
| 42 |
Contributions are welcome! To contribute, please familiarize yourself with |
| 43 |
[](CONTRIBUTING.mdCONTRIBUTING.md](CONTRIBUTING.md](CONTRIBUTING.md). |
| 44 |
|
| 45 |
## Coordinated Disclosure |
| 46 |
|
| 47 |
Keeping user information safe and secure is a top priority, and we welcome the |
| 48 |
contribution of external security researchers. If you believe you've found a |
| 49 |
security issue in software that is maintained in this repository, please read |
| 50 |
[SECURITY.md][] for instructions on submitting a vulnerability report. |
| 51 |
|
| 52 |
## ramsey/collection for Enterprise |
| 53 |
|
| 54 |
Available as part of the Tidelift Subscription. |
| 55 |
|
| 56 |
The maintainers of ramsey/collection and thousands of other packages are working |
| 57 |
with Tidelift to deliver commercial support and maintenance for the open source |
| 58 |
packages you use to build your applications. Save time, reduce risk, and improve |
| 59 |
code health, while paying the maintainers of the exact packages you use. |
| 60 |
[](https://tidelift.com/subscription/pkg/packagist-ramsey-collection?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repoLearn more.](https://tidelift.com/subscription/pkg/packagist-ramsey-collection?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repo](https://tidelift.com/subscription/pkg/packagist-ramsey-collection?utm_source=undefined&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) |
| 61 |
|
| 62 |
## Copyright and License |
| 63 |
|
| 64 |
The ramsey/collection library is copyright © [](https://benramsey.comBen Ramsey](https://benramsey.com](https://benramsey.com) |
| 65 |
and licensed for use under the terms of the |
| 66 |
MIT License (MIT). Please see [](LICENSELICENSE](LICENSE](LICENSE) for more information. |
| 67 |
|
| 68 |
|
| 69 |
[java]: http://docs.oracle.com/javase/8/docs/technotes/guides/collections/index.html |
| 70 |
[security.md]: https://github.com/ramsey/collection/blob/main/SECURITY.md |
| 71 |
|