czproject / dependency-php
PHP class for dependency resolving.
Fund package maintenance!
Other
Installs: 8 377
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
Requires (Dev)
- nette/tester: ^2.0
This package is auto-updated.
Last update: 2024-10-13 18:31:48 UTC
README
PHP class for dependency resolving.
Installation
Download a latest package or use Composer:
composer require czproject/dependency-php
Dependency-PHP requires PHP 5.6.0 or later.
Usage
$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/