PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 282 All time: 7,588 This week: 206Up
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 is available for providing paid consulting. Contact Thiago Luiz Alves .
Classes: 3 packages by
Country: Brazil Brazil
Age: 35
All time rank: 2264153 in Brazil Brazil
Week rank: 270 Up19 in Brazil Brazil Up
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:282
This week:0
All time:7,588
This week:206Up