PHP class for dependency resolving.
Download a latest package or use Composer:
composer require czproject/dependency-php
Dependency-PHP requires PHP 5.6.0 or later.
$resolver = new CzProject\DependencyPhp\Resolver;
$resolver->add('x', array('a', 'b'))
->add('a', array('b', 'c'))
->add('b', 'd')
->add('c', array('d'));
$resolver->getResolved(); // returns ['d', 'b', 'c', 'a', 'x']
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/