PHP Classes

PHP Dependency Injector: Container to inject dependencies between classes

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 282 All time: 7,597 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 <contact>
Classes: 3 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Screenshots (1)  
  • di_example
  Files folder image Files (10)  
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 (10)  /  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 (10)  /  App  /  Core  
File Role Description
Files folder imageIoC (2 files)

  Files folder image Files (10)  /  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 (10)  /  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 (10)  /  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 (10)  /  App  /  Service  
File Role Description
  Plain text file CompanyService.php Class Service of Company class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:282
This week:0
All time:7,597
This week:206Up