-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jan Pecha <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Dependency-PHP | ||
============== | ||
|
||
PHP class for dependency resolving. | ||
|
||
Usage | ||
----- | ||
|
||
``` php | ||
<?php | ||
$resolver = new Cz\Dependency; | ||
$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'] | ||
``` | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
[Download a latest package](https://github.com/czproject/dependency-php/releases) or use [Composer](http://getcomposer.org/): | ||
|
||
``` | ||
composer require czproject/dependency-php | ||
``` | ||
|
||
Dependency-PHP requires PHP 5.3.0 or later and .... | ||
|
||
|
||
------------------------------ | ||
|
||
License: [New BSD License](license.md) | ||
<br>Author: Jan Pecha, http://janpecha.iunas.cz/ |