Login   Register  
PHP Classes
elePHPant
Icontem

Pyha PHP Dependency Injection Container Using Traits: Create objects injecting dependencies using traits

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-01-17 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 406 All time: 5,847 This week: 1,410Up
Version License PHP version Categories  
dependency-injection 1.0.1The PHP License5.4PHP 5, Language, Design Patterns
Description Author  

This package can be used to create objects injecting dependencies using traits.

It can create a new object injecting dependencies using traits that define the injectable values or pass the values explicitly to the dependency injection container.

The new objects may be created as individual instances or retrieved as singleton objects.

Innovation Award  
PHP Programming Innovation award nominee
February 2013
Number 2


Prize: One year subscription to the PDF edition of the JSMag magazine
Dependency injection is a design pattern that is used to create objects using external definitions that specify how the objects should be constructed and configured.

This package can inject dependencies by using traits to define the dependencies and injectable values during the object creating.

Manuel Lemos
Picture of AlexanderC
Name: AlexanderC is available for providing paid consulting. Contact AlexanderC .
Classes: 13 packages by
Country: Moldova Moldova
Age: 25
All time rank: 8121 in Moldova Moldova
Week rank: 16 Up1 in Moldova Moldova Equal
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagelib (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  lib  
File Role Description
Files folder imagePyha (2 directories)

  Files folder image Files  /  lib  /  Pyha  
File Role Description
Files folder imageDI (4 files)
Files folder imageHelpers (1 directory)

  Files folder image Files  /  lib  /  Pyha  /  DI  
File Role Description
  Plain text file Container.php Class Class source
  Plain text file Factory.php Class Class source
  Plain text file Injectable.php Class Class source
  Plain text file Service.php Class Class source

  Files folder image Files  /  lib  /  Pyha  /  Helpers  
File Role Description
Files folder imagetraits (1 file)

  Files folder image Files  /  lib  /  Pyha  /  Helpers  /  traits  
File Role Description
  Plain text file Singleton.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%Total:406All time:5,847
 This week:0This week:1,410Up