Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 54 | | All time: 10,622 This week: 206 |
|
Description | | Author |
This class can track class dependencies using callback functions.
It provides a class with setter, getter, __isset, __unset, and __call functions, allowing applications to store dependency objects in class variables.
The class also has a set of static call variables that can store callback functions to be invoked when the dependency object variables are set, changed, checked, removed, or called. Innovation Award
May 2023
Number 6 |
Well-structured PHP projects split their functionality into multiple components that perform a few actions to make the projects simpler to develop and understand.
PHP components are usually implemented as classes. Different components may use classes of other components that implement specialized actions.
These relations between different component classes are called dependencies.
This package implements a dependency management class that can keep track of objects of different dependency classes.
The package implements a callback hook feature that allows different component classes to track the changes done in the dependencies between component classes.
This possibility allows developers to find issues due to unintended changes in the class dependencies that may make the applications not work as expected, thus making it easier to debug this type of issue.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 1x |
|
Details
Dependency
very very small dependency class
maybe you will find it as a joke haha :-)
Installation
you can download this with composer (packagist)
<pre><code>composer require ryanhs/dependency</code></pre>
example
<pre><code>require 'vendor/autoload.php'; // composer autoload
use \Ryanhs\Dependency\Dependency;
$d = new Dependency;
$d->app = new MyApp();
$d->router = new MyRouter();
$d->controller = new MyController();
$d->app->run();
</code></pre>
License
MIT License
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.