PHP Classes

PHP Dependency Management: Track class dependencies using callback functions

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-05-24 (9 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 53 All time: 10,563 This week: 358Up
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: 383064 in Indonesia Indonesia
Week rank: 341 Up9 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  
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  /  src  
File Role Description
  Plain text file Dependency.php Class Class source

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:53
This week:0
All time:10,563
This week:358Up