PHP Classes
elePHPant
Icontem

PHP Dependency Injector: Container to inject dependencies between classes

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-05-05 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 276 All time: 7,185 This week: 915Up
Version License PHP version Categories
dependency-inject 1.0GNU General Publi...5.4PHP 5, Language, Design Patterns
Description Author

This package is a container to inject dependencies between classes.

It can register factory classes that will be responsible to instantiate class objects dynamically calling the registered factories.

The class uses reflection to create the requested instance passing its constructor arguments.

Picture of Thiago Luiz Alves
  Performance   Level  
Name: Thiago Luiz Alves <contact>
Classes: 3 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Screenshots  
  • di_example
  Files folder image Files  
File Role Description
Files folder imageApp (4 directories)
Accessible without login Plain text file autoload.php Aux. Class loader
Accessible without login Plain text file teste.php Example Teste Script

  Files folder image Files  /  App  
File Role Description
Files folder imageCore (1 directory)
Files folder imageDao (2 files)
Files folder imageFactory (2 files)
Files folder imageService (1 file)

  Files folder image Files  /  App  /  Core  
File Role Description
Files folder imageIoC (2 files)

  Files folder image Files  /  App  /  Core  /  IoC  
File Role Description
  Plain text file ClassFactory.php Class Abstract Class Factory
  Plain text file Injector.php Class Injection Container

  Files folder image Files  /  App  /  Dao  
File Role Description
  Plain text file AddressDAO.php Class DAO of Address
  Plain text file ContactDAO.php Class DAO of Contact

  Files folder image Files  /  App  /  Factory  
File Role Description
  Plain text file SingletonObject.php Class SingletonObject used as example
  Plain text file SingletonObjectFactory.php Class Factory of Singleton Objects

  Files folder image Files  /  App  /  Service  
File Role Description
  Plain text file CompanyService.php Class Service of Company class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:276
This week:0
All time:7,185
This week:915Up