PHP Auto Dependency Injection: Create objects classes and dependent classes

Recommend this page to a friend!
  Info   Example   View files (2)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
57%Total: 136 All time: 8,996 This week: 318
Version License PHP version Categories
auto-di 1.0BSD License5.5PHP 5, Language
Description Author

This class can create objects classes and dependent classes.

It can create a new instance of a given class or return a previously created instance of that class.

The class uses reflection to determine what are the dependent classes by looking at the type hinting classes passed as class function parameters.

The class can also automatically invoke a given function of a class passing instances of the respective classes specified in the type hinting.

Innovation Award
PHP Programming Innovation award nominee
March 2016
Number 16

Prize: One year server license IP to country, region, city, latitude, longitude, ZIP code, time zone, area code database
Nowadays, with type hinting it is possible to determine the types of values that a class expects on each call.

This class can automatically create objects of classes and any dependencies using Reflection to determine what the classes expect when calling its function.

Manuel Lemos
Picture of Aleksandar Zivanovic
  Performance   Level  
Name: Aleksandar Zivanovic <contact>
Classes: 15 packages by
Country: Serbia Serbia
Age: 26
All time rank: 17217 in Serbia Serbia
Week rank: 84 1 in Serbia Serbia
Innovation award
Innovation award
Nominee: 4x

File Role Description
AutoDi.php Class Class itself
example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,996
This week:318
 User Ratings  
 All time

For more information send a message to info at phpclasses dot org.