|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2023-05-24 (3 months ago) ||Not yet rated by the users||Total: 51 ||All time: 10,516 This week: 109|
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.
|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.
very very small dependency class
maybe you will find it as a joke haha :-)
you can download this with composer (packagist)
<pre><code>composer require ryanhs/dependency</code></pre>
<pre><code>require 'vendor/autoload.php'; // composer autoload
$d = new Dependency;
$d->app = new MyApp();
$d->router = new MyRouter();
$d->controller = new MyController();
||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.