PHP Classes

PHP Auto Dependency Injection: Create objects classes and dependent classes

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


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: 16 packages by
Country: Serbia Serbia
Age: 29
All time rank: 16277 in Serbia Serbia
Week rank: 373 Up5 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file AutoDi.php Class Class itself
Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,218
This week:318Up
 User Ratings  
 All time