Login   Register  
PHP Classes
elePHPant
Icontem

PHP Dependency Injector: Container to inject dependencies between classes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 255 This week: 2All time: 6,865 This week: 893Up
Version License PHP version Categories  
dependency-inject 1.0GNU General Public Lice...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
Name: Thiago Luiz Alves is available for providing paid consulting. Contact Thiago Luiz Alves .
Classes: 3 packages by
Country: Brazil Brazil
Age: 26
All time rank: 2127145 in Brazil Brazil
Week rank: 787 Up62 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:255All time:6,865
 This week:2This week:893Up