PHP Classes

PHP Dependency Management: Track class dependencies using callback functions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 54 All time: 10,622 This week: 206Up
Version License PHP version Categories
dependency 1.0MIT/X Consortium ...5PHP 5, Language, Design Patterns
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
PHP Programming Innovation award nominee
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
Picture of ryan silalahi
Name: ryan silalahi <contact>
Classes: 2 packages by
Country: Indonesia Indonesia
Age: ???
All time rank: 383564 in Indonesia Indonesia
Week rank: 147 Up3 in Indonesia Indonesia Up
Innovation award
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

		

  Files folder image Files (5)  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetest (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (5)  /  src  
File Role Description
  Plain text file Dependency.php Class Class source

  Files folder image Files (5)  /  test  
File Role Description
  Plain text file Test.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:54
This week:0
All time:10,622
This week:206Up