PHPackages                             ulyssear/flexible-collections - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. ulyssear/flexible-collections

ActiveLibrary[Testing &amp; Quality](/categories/testing)

ulyssear/flexible-collections
=============================

Lightweight &amp; flexible collections for PHP 8

1.2.2(4y ago)110[1 issues](https://github.com/ulyssear/flexible-collections/issues)MITPHPPHP &gt;=8.0

Since Dec 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ulyssear/flexible-collections)[ Packagist](https://packagist.org/packages/ulyssear/flexible-collections)[ RSS](/packages/ulyssear-flexible-collections/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

[![Contributors](https://camo.githubusercontent.com/a3dafcd53c9d9673f5ea5942614c94019f0e14c614c1f32667a53674e1f9dcae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f756c7973736561722f666c657869626c652d636f6c6c656374696f6e732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ulyssear/flexible-collections/graphs/contributors)[![Forks](https://camo.githubusercontent.com/b5db5d5bd181f79d2cc6da9ff3a06c898e1b617b74fb65bc0e49462cdfbbac9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f756c7973736561722f666c657869626c652d636f6c6c656374696f6e732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ulyssear/flexible-collections/network/members)[![Stargazers](https://camo.githubusercontent.com/8c9d497f61652abf0f3d348e2fd28c237d646cd2e88978eb2dacad3c9a055df9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f756c7973736561722f666c657869626c652d636f6c6c656374696f6e732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ulyssear/flexible-collections/stargazers)[![Issues](https://camo.githubusercontent.com/96921f0d8b6bb834fd3713af3926c362b0310a4228b8b4621946a37f4b2396de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f756c7973736561722f666c657869626c652d636f6c6c656374696f6e732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ulyssear/flexible-collections/issues)[![MIT License](https://camo.githubusercontent.com/a82bc3f7044b28c2b350673d99e0c562bd1425de6788eeb846cb7df6e5433868/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f756c7973736561722f666c657869626c652d636f6c6c656374696f6e732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ulyssear/flexible-collections/blob/master/LICENSE)[![LinkedIn](https://camo.githubusercontent.com/d52963778220cbec61d6ed72270f9735024ffceeb551e5c3933d4e03b4694cf1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c61636b2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e6b6564696e26636f6c6f72423d353535)](https://linkedin.com/in/ulyssearnaud)

 [](https://github.com/ulyssear/flexible-collections)Flexible collections for PHP 8
==============================

[](#flexible-collections-for-php-8)

 Polymorphic collections for PHP 8+.
 [**Explore the docs »**](https://github.com/ulyssear/flexible-collections)

 [View Demo](https://github.com/ulyssear/flexible-collections) · [Report Bug](https://github.com/ulyssear/flexible-collections/issues) · [Request Feature](https://github.com/ulyssear/flexible-collections/issues)

 Table of Contents1. [About The Project](#about-the-project)
    - [Built With](#built-with)
2. [Getting Started](#getting-started)
    - [Prerequisites](#prerequisites)
    - [Installation](#installation)
3. [Usage](#usage)
4. [Roadmap](#roadmap)
5. [Contributing](#contributing)
6. [License](#license)
7. [Contact](#contact)

About The Project
-----------------

[](#about-the-project)

([back to top](#readme-top))

### Built With

[](#built-with)

[![PHP](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/)[![Composer](https://camo.githubusercontent.com/167fde758f22b49b6cc9441209ab62a654ea9b422f34b21f6130a1e29aaeeaab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d706f7365722d3838353633303f7374796c653d666f722d7468652d6261646765266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d7768697465)](https://getcomposer.org/)

([back to top](#readme-top))

Getting Started
---------------

[](#getting-started)

```
composer require ulyssear/flexible-collections
```

([back to top](#readme-top))

### Prerequisites

[](#prerequisites)

- PHP &gt;= 8.0
- Composer &gt;= 2.0

### Installation

[](#installation)

#### From Composer

[](#from-composer)

1. Install with composer

    ```
    composer require ulyssear/flexible-collections
    ```

#### Manual installation

[](#manual-installation)

1. Clone the repo ```
    git clone https://github.com/ulyssear/flexible-collections.git
    ```
2. Install dependencies ```
    cd flexible-collections
    composer install
    ```

If you are a developer, you can also follow theses steps to contribute to the project :

3. Run tests ```
     composer test
    ```
4. Run static analysis ```
     composer static-analysis
    ```
5. Run code style ```
     composer code-style
    ```
6. Run all checks ```
     composer checks
    ```

([back to top](#readme-top))

Usage
-----

[](#usage)

([back to top](#readme-top))

Roadmap
-------

[](#roadmap)

See the [open issues](https://github.com/ulyssear/flexible-collections/issues) for a full list of proposed features (and known issues).

([back to top](#readme-top))

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

([back to top](#readme-top))

License
-------

[](#license)

Distributed under the MIT License. See `LICENSE` for more information.

([back to top](#readme-top))

Contact
-------

[](#contact)

Ulysse ARNAUD -

Project Link:

([back to top](#readme-top))

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

1617d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2790c50211b1a3cb3bfd66f4ac89170547ebf364a9ad078e21276d7467881370?d=identicon)[Ulyssear](/maintainers/Ulyssear)

---

Top Contributors

[![ulyssear](https://avatars.githubusercontent.com/u/11415595?v=4)](https://github.com/ulyssear "ulyssear (23 commits)")

---

Tags

composercomposer-librarycomposer-packagephpphp-cs-fixerphpstanphpunit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ulyssear-flexible-collections/health.svg)

```
[![Health](https://phpackages.com/badges/ulyssear-flexible-collections/health.svg)](https://phpackages.com/packages/ulyssear-flexible-collections)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M679](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
