PHPackages                             phootwork/collection - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. phootwork/collection

ActiveLibrary[Queues &amp; Workers](/categories/queues)

phootwork/collection
====================

The phootwork library fills gaps in the php language and provides better solutions than the existing ones php offers.

v3.2.3(3y ago)3924.8M—4.1%415MITPHPPHP &gt;=8.0

Since May 12Pushed 1y ago5 watchersCompare

[ Source](https://github.com/phootwork/collection)[ Packagist](https://packagist.org/packages/phootwork/collection)[ Docs](https://phootwork.github.io/collection/)[ RSS](/packages/phootwork-collection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (28)Used By (15)

PHP Collections library
=======================

[](#php-collections-library)

[![Tests](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)](https://github.com/phootwork/phootwork/workflows/Tests/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/69bd7e143cbdfb19d74ce75708a9f883ef5e8c3e12e93af074e908c564d06c52/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/826ef921280a14b18e896b455eda961bf8c53758c493844143b31e66791a06d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70686f6f74776f726b2f70686f6f74776f726b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phootwork/phootwork/?branch=master)[![License](https://camo.githubusercontent.com/f910509fb3520b2f4dc04c6e6674567aaa735568f8dc862ec28572984a880506/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f70686f6f74776f726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/collection)[![Latest Stable Version](https://camo.githubusercontent.com/65ca3ee38f3bf99dda1bb6e4e10bdec38579346bc210816fb59f58de2d5de755/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686f6f74776f726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phootwork/collection)[![Total Downloads](https://camo.githubusercontent.com/e53643d74d0d511c8d54c1197308c7c75c5fcdb596136acc49c5fe23efa6a92e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70686f6f74776f726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d303037656336)](https://packagist.org/packages/phootwork/collection)

PHP Collections library which contains ArrayList, Set, Map, Queue &amp; Stack.

Goals
-----

[](#goals)

- Provide collections for php
- Inspired by java `java.util.Collection`
- Functional sugar (map, filter, reduce, ...)

Installation
------------

[](#installation)

Installation via composer:

```
composer require phootwork/collection

```

Documentation
-------------

[](#documentation)

Running tests
-------------

[](#running-tests)

This package is a part of the Phootwork library. In order to run the test suite, you have to download the full library.

```
git clone https://github.com/phootwork/phootwork

```

Then install the dependencies via composer:

```
composer install

```

Now, run the *collection* test suite:

```
vendor/bin/phpunit --testsuite collection

```

If you want to run the whole library tests, simply run:

```
vendor/bin/phpunit

```

Contact
-------

[](#contact)

Report issues at the github [Issue Tracker](https://github.com/phootwork/phootwork/issues).

Changelog
---------

[](#changelog)

Refer to [Releases](https://github.com/phootwork/phootwork/releases)

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity60

Solid adoption and visibility

Community27

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 66.1% 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 ~102 days

Recently: every ~82 days

Total

27

Last Release

1360d ago

Major Versions

v1.6.1 → v2.0-alpha2019-12-03

v2.1.3 → v3.02021-03-08

PHP version history (4 changes)v1.0PHP &gt;=5.4

v1.5.0PHP &gt;=5.6

v2.0-alphaPHP &gt;=7.2

v3.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b1ca3beb32834f0f6a4b66d7a695ecc01397aa92e9a97bd0ba5dd8aa14e0c6e?d=identicon)[gossi](/maintainers/gossi)

![](https://www.gravatar.com/avatar/fb5ce96caf1e78aeefa09e75b49f21cc5214729ac6a9a06b852cf5de1269e058?d=identicon)[cristianoc72](/maintainers/cristianoc72)

---

Top Contributors

[![gossi](https://avatars.githubusercontent.com/u/283700?v=4)](https://github.com/gossi "gossi (39 commits)")[![cristianoc72](https://avatars.githubusercontent.com/u/865437?v=4)](https://github.com/cristianoc72 "cristianoc72 (17 commits)")[![zquintana](https://avatars.githubusercontent.com/u/130444?v=4)](https://github.com/zquintana "zquintana (2 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

collectionlistmapphpqueuesetstackjsonxmlqueuestackmapsetcollectioncollectionslistText objectArray object

### Embed Badge

![Health badge](/badges/phootwork-collection/health.svg)

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

###  Alternatives

[ramsey/collection

A PHP library for representing and manipulating collections.

1.2k486.0M69](/packages/ramsey-collection)[phpcollection/phpcollection

General-Purpose Collection Library for PHP

1.0k64.0M34](/packages/phpcollection-phpcollection)

PHPackages © 2026

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