Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.36 KB

readme.md

File metadata and controls

42 lines (28 loc) · 1.36 KB

Dependency-PHP

Build Status Downloads this Month Latest Stable Version License

PHP class for dependency resolving.

Donate

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/