PHPackages                             squirrafe/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. squirrafe/collections

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

squirrafe/collections
=====================

PHP Collections Library

1.2.0(4y ago)151[12 issues](https://github.com/Squirrafe/PhpCollections/issues)MITPHPPHP 7.4.\* || 8.0.\* || 8.1.\*

Since Mar 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Squirrafe/PhpCollections)[ Packagist](https://packagist.org/packages/squirrafe/collections)[ RSS](/packages/squirrafe-collections/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

PHP Collections Library
-----------------------

[](#php-collections-library)

[![Tests](https://camo.githubusercontent.com/85c8d91a83ff1cbe91683d7b9d9bb3b279d1e2ca6a84762f3d35a68fcedf04c8/68747470733a2f2f736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f5371756972726166652f506870436f6c6c656374696f6e732f54657374733f6c6162656c3d5465737473)](https://github.com/Squirrafe/PhpCollections/actions/workflows/workflow.yaml)[![License](https://camo.githubusercontent.com/33dd2b9c1c16fdbdb00c45dbcfccd7302d47e1ef3563efbf00879fbe5da3e47c/68747470733a2f2f736869656c64732e696f2f6769746875622f6c6963656e73652f5371756972726166652f506870436f6c6c656374696f6e73)](https://github.com/Squirrafe/PhpCollections/blob/main/LICENSE)[![Current version](https://camo.githubusercontent.com/03cb6917977268464a45f13475b9ce75abaade75343443168b064517ff42db71/68747470733a2f2f736869656c64732e696f2f7061636b61676973742f762f7371756972726166652f636f6c6c656374696f6e73)](https://packagist.org/packages/squirrafe/collections)[![PHP Version](https://camo.githubusercontent.com/1bfe1137d32071dc56218c0fd307a52c0255ad829eeae766d10f9a6890cf766c/68747470733a2f2f736869656c64732e696f2f7061636b61676973742f7068702d762f7371756972726166652f636f6c6c656374696f6e73)](https://camo.githubusercontent.com/1bfe1137d32071dc56218c0fd307a52c0255ad829eeae766d10f9a6890cf766c/68747470733a2f2f736869656c64732e696f2f7061636b61676973742f7068702d762f7371756972726166652f636f6c6c656374696f6e73)

Collections library for PHP, inspired by Scala.

Install with Composer:

```
composer require squirrafe/collections
```

See documentation at [GitHub Pages](https://squirrafe.github.io/PhpCollections/).

#### Supported PHP versions

[](#supported-php-versions)

PHP VersionIs supported?Latest library version with support8.1✅[Current version](https://github.com/Squirrafe/PhpCollections/releases/latest)8.0✅[Current version](https://github.com/Squirrafe/PhpCollections/releases/latest)7.4✅[Current version](https://github.com/Squirrafe/PhpCollections/releases/latest)#### Development

[](#development)

Library uses Docker Compose during development.

To install dependencies:

```
docker-compose run php composer install
```

To run tests:

```
docker-compose run php vendor/bin/phpunit
docker-compose run php vendor/bin/phpstan analyze
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~8 days

Total

3

Last Release

1547d ago

PHP version history (2 changes)1.0.0PHP 8.1.\* || 8.0.\*

1.1.0PHP 7.4.\* || 8.0.\* || 8.1.\*

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/100072707?v=4)[Squirrafe](/maintainers/Squirrafe)[@Squirrafe](https://github.com/Squirrafe)

---

Top Contributors

[![ShookTea](https://avatars.githubusercontent.com/u/4903587?v=4)](https://github.com/ShookTea "ShookTea (51 commits)")

---

Tags

collections

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k430.2M1.5k](/packages/doctrine-collections)[dusank/knapsack

Collection library for PHP

5391.0M25](/packages/dusank-knapsack)[qaribou/immutable.php

Immutable, highly-performant collections, well-suited for functional programming and memory-intensive applications.

345148.0k](/packages/qaribou-immutablephp)[ilya/belt

A handful of tools for PHP developers.

71020.9k1](/packages/ilya-belt)[xi/collections

Functional, immutable and extensible enumerations and collections for PHP 5.3.

26100.7k1](/packages/xi-collections)[chemem/bingo-functional

A simple functional programming library.

707.0k3](/packages/chemem-bingo-functional)

PHPackages © 2026

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