PHPackages                             doganoo/php-algorithms - 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. doganoo/php-algorithms

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

doganoo/php-algorithms
======================

A collection of common algorithms implemented in PHP. The collection is based on "Cracking the Coding Interview" by Gayle Laakmann McDowell

2.1.1(2y ago)9485.4k—6.7%7MITPHP &gt;=8.0

Since Jun 10Compare

[ Source](https://github.com/doganoo/PHPAlgorithms)[ Packagist](https://packagist.org/packages/doganoo/php-algorithms)[ Docs](https://www.dogan-ucar.de/phpalgorithms-2/)[ Fund](https://www.paypal.me/doganoo)[ RSS](/packages/doganoo-php-algorithms/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (7)Versions (42)Used By (7)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/doganoo/PHPAlgorithms).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~156 days

Total

40

Last Release

1086d ago

Major Versions

0.0.27 → 1.0.02019-10-09

1.1.1 → 2.0.02022-05-24

PHP version history (3 changes)0.0.22PHP &gt;=7.1

1.1.0PHP &gt;=7.4

2.1.1PHP &gt;=8.0

### Community

Maintainers

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

---

Tags

data structuresalgorithms

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/doganoo-php-algorithms/health.svg)

```
[![Health](https://phpackages.com/badges/doganoo-php-algorithms/health.svg)](https://phpackages.com/packages/doganoo-php-algorithms)
```

###  Alternatives

[php-ds/php-ds

Specialized data structures as alternatives to the PHP array

4108.8M134](/packages/php-ds-php-ds)[qaribou/immutable.php

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

344146.0k](/packages/qaribou-immutablephp)[gajus/dindent

HTML indentation library for development and testing.

1781.9M50](/packages/gajus-dindent)[marcosh/lamphpda

A collection of functional programming data structures

12313.5k4](/packages/marcosh-lamphpda)[judev/php-intervaltree

Interval Tree implementation in PHP

1138.8k1](/packages/judev-php-intervaltree)[hexogen/kdtree

file system KDTree index

2086.7k](/packages/hexogen-kdtree)

PHPackages © 2026

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