PHPackages                             ec0g/algostruct - 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. ec0g/algostruct

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

ec0g/algostruct
===============

A package of algorithms and data structures written in PHP.

02PHP

Since Jul 24Pushed 7y agoCompare

[ Source](https://github.com/ec0g/algostruct)[ Packagist](https://packagist.org/packages/ec0g/algostruct)[ RSS](/packages/ec0g-algostruct/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/cbb038a4393eb64db377b1e69076e2c0910919c77de1ed1b9c94678dba88074f/68747470733a2f2f636972636c6563692e636f6d2f67682f656330672f616c676f7374727563742e7376673f7374796c653d736869656c6426636972636c652d746f6b656e3d31396333383730356165363438316430366665376566306636663462326461346265663966666265)](https://circleci.com/gh/ec0g/algostruct)[![Coverage Status](https://camo.githubusercontent.com/e9a9c5f0677351cff7e17f123264e01d92b1139f62038feb40c41240e88f6e55/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f656330672f616c676f7374727563742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ec0g/algostruct?branch=master)

algostruct
==========

[](#algostruct)

A package of algorithms and data structures written in PHP.

Each algorithm or data structure is implemented in OO PHP with full test coverage. The underlying theory for each concept is based on the work done in *Algorithms by Cormen, Leiserson, Rivest, Stein et al.*

The documentation is in progress...

Table of contents
=================

[](#table-of-contents)

### Trees

[](#trees)

- Binary Search Trees (**BST**)
- Red Black Trees (**RBT**)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b7f7dbf1645bff618cad124aebf75a154fd1f3271c8e7f4243a8ba43536106c?d=identicon)[ec0g](/maintainers/ec0g)

---

Top Contributors

[![ec0g](https://avatars.githubusercontent.com/u/3207179?v=4)](https://github.com/ec0g "ec0g (10 commits)")

### Embed Badge

![Health badge](/badges/ec0g-algostruct/health.svg)

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

###  Alternatives

[kodicms/module-loader

1614.9k11](/packages/kodicms-module-loader)

PHPackages © 2026

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