PHPackages                             heptacom/dependency-resolver - 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. heptacom/dependency-resolver

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

heptacom/dependency-resolver
============================

Basis library to resolve dependencies with graph / tree

1.0.0(1y ago)17MITPHPPHP &gt;=8.3

Since Nov 2Pushed 1y agoCompare

[ Source](https://github.com/HEPTACOM/dependency-resolver)[ Packagist](https://packagist.org/packages/heptacom/dependency-resolver)[ RSS](/packages/heptacom-dependency-resolver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Installing heptacom/dependency-resolver
---------------------------------------

[](#installing-heptacomdependency-resolver)

The recommended way to install heptacom/dependency-resolver is through [Composer](http://getcomposer.org).

Next, run the Composer command to install the latest stable version of dependency-resolver:

```
composer require heptacom/dependency-resolver
```

You can then later update dependency-resolver using composer:

```
composer update heptacom/dependency-resolver
```

### Usage

[](#usage)

```
$tree  = [
    'A' => [],
    'B' => ['A'],
    'C' => ['B'],
    'D' => ['C', 'A'],
    'E' => ['C', 'B'],
];
$resolution = (new \Heptacom\DependencyResolver\DependencyResolver())->resolve($tree);
print($resolution);
// ['A','B','C','D','E']
```

OR

```
$tree  = [
    'A' => ['B'],
    'B' => ['C'],
    'C' => ['A'],
];
$resolution = (new \Heptacom\DependencyResolver\DependencyResolver())->resolve($tree);
// RuntimeException : Circular dependency: C -> A
```

**Documentation**

-
-

Contributors
------------

[](#contributors)

**Joshua Behrens**

-

**Anthony K GROSS** (Original author)

-
-
-

Copyright and license
---------------------

[](#copyright-and-license)

Code and documentation copyright 2020. Code released under [the MIT license](./LICENSE.md).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87% 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

Unknown

Total

1

Last Release

560d ago

### Community

Maintainers

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

---

Top Contributors

[![JoshuaBehrens](https://avatars.githubusercontent.com/u/1133593?v=4)](https://github.com/JoshuaBehrens "JoshuaBehrens (20 commits)")[![anthonykgross](https://avatars.githubusercontent.com/u/5046196?v=4)](https://github.com/anthonykgross "anthonykgross (3 commits)")

---

Tags

heptaconnectsatsat-solversatheptaconnectsat-solver

### Embed Badge

![Health badge](/badges/heptacom-dependency-resolver/health.svg)

```
[![Health](https://phpackages.com/badges/heptacom-dependency-resolver/health.svg)](https://phpackages.com/packages/heptacom-dependency-resolver)
```

###  Alternatives

[phpcfdi/cfdi-sat-scraper

Web Scraping para extraer facturas electrónicas desde la página del SAT

9018.0k](/packages/phpcfdi-cfdi-sat-scraper)[phpcfdi/rfc

PHP library to deal with Mexican RFC

2562.4k3](/packages/phpcfdi-rfc)[phpcfdi/xml-cancelacion

Genera documentos de cancelación de CFDI firmados (XMLSEC)

1149.5k4](/packages/phpcfdi-xml-cancelacion)[phpcfdi/cfdi-cleaner

Clean up Mexican CFDI

1334.1k1](/packages/phpcfdi-cfdi-cleaner)[phpcfdi/sat-catalogos

Catálogos de SAT para CFDI 3.3, CFDI 4.0 y Nómina 1.2

304.6k24](/packages/phpcfdi-sat-catalogos)[heptacom/heptaconnect-core

HEPTAconnect core processes

1224.3k4](/packages/heptacom-heptaconnect-core)

PHPackages © 2026

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