Registry / utility / marcj-topsort

marcj-topsort

JSON →
library2.0.0phppackagistunverified

High-Performance TopSort/Dependency resolving algorithm for PHP.

composer require marcj/topsort
INSTALL
IMPORT
SIG · MARCJ-TOPSORT
M
marcj-topsort
utilityphpv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ArraySort
use MJS\TopSort\Implementations\ArraySort;

Perform topological sorting of dependencies using ArraySort.

<?php\nuse MJS\\TopSort\\Implementations\\ArraySort;\n\n$sorter = new ArraySort();\n$sorter->add('a', ['b']);\n$sorter->add('b', []);\n$result = $sorter->sort();\nprint_r($result);
Debug
Known issues
breakingVersion 2.0.0 changed namespace from TopSort to MJS\TopSort.
fix
Update use statements to MJS\TopSort namespace.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
marcj-topsort — pip install marcj-topsort · libregistry