PHP Classes
elePHPant
Icontem

FContainer: Simple dependency injection container

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-04-23 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 212 All time: 7,731 This week: 1,113Up
Version Licenses PHP version Categories
fcontainer 1.0Artistic License, B...5PHP 5, Language, Design Patterns
Description Author

This class implements a simple dependency injection container.

It extends the ArrayObject class to store values with given keys that can be either callable functions or scalar values.

When retrieving a value with a given key from the class, it checks if it is a callable and will call it when it is the case. Otherwise it will return the value as is.

Picture of goo
  Performance   Level  
Name: goo <contact>
Classes: 2 packages by
Country: Japan Japan

  Files folder image Files  
File Role Description
Plain text file FContainer.php Class DI container class
Accessible without login Plain text file testCest.php Test unittest with codeception

 Version Control Unique User Downloads Download Rankings  
 0%
Total:212
This week:0
All time:7,731
This week:1,113Up