PHPackages                             j45l/abstract-data-structures-php - 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. j45l/abstract-data-structures-php

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

j45l/abstract-data-structures-php
=================================

Abstract data structures for PHP

4.0.4(3y ago)248MITPHPPHP ~8.1

Since Apr 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jordibisbal/abstract-data-structures-php)[ Packagist](https://packagist.org/packages/j45l/abstract-data-structures-php)[ RSS](/packages/j45l-abstract-data-structures-php/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (12)Versions (17)Used By (0)

abstractDataStructures
======================

[](#abstractdatastructures)

Immutable data structures
-------------------------

[](#immutable-data-structures)

Persistent data structured, not optimized for big collections/arrays

All collection are typed, extend from the base type, set the allowed type by overriding `abstract public function type(): string;`, return must the desired type classname.

When a getter operation would produce a mutation, a two elements array is returned, the first element would be the modified collection, and the second one the got element.

```
$queue = Queue::fromArray([1, 2]);

```

Classes
-------

[](#classes)

- [Queue](doc/queue.md)
- [Collection](doc/collection.md)
- MixedQueue
- MixedCollection
- Mixed

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Recently: every ~50 days

Total

16

Last Release

1138d ago

Major Versions

1.2.3.0 → 2.0.02022-06-12

2.0.0 → 3.0.02022-10-15

3.1.1 → 4.0.02022-11-01

PHP version history (2 changes)1.1.0.0PHP ~8

1.2.0.0PHP ~8.1

### Community

Maintainers

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

---

Top Contributors

[![jordibisbal](https://avatars.githubusercontent.com/u/10561525?v=4)](https://github.com/jordibisbal "jordibisbal (47 commits)")

---

Tags

abstract data structures

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/j45l-abstract-data-structures-php/health.svg)

```
[![Health](https://phpackages.com/badges/j45l-abstract-data-structures-php/health.svg)](https://phpackages.com/packages/j45l-abstract-data-structures-php)
```

###  Alternatives

[codeconsortium/ccdn-forum-bundle

CCDN Forum Bundle

6015.4k1](/packages/codeconsortium-ccdn-forum-bundle)

PHPackages © 2026

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