PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-02 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 459 All time: 6,076 This week: 114Up
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
  Performance   Level  
Name: AlexanderC is available for providing paid consulting. Contact AlexanderC .
Classes: 13 packages by
Country: Moldova Moldova
Age: 33
All time rank: 7311 in Moldova Moldova
Week rank: 180 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:459
This week:0
All time:6,076
This week:114Up