PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 221 This week: 1All time: 8,257 This week: 560Up
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
Age: 39
All time rank: 334311 in Japan Japan
Week rank: 411 Up1 in Japan Japan Up

  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:221
This week:1
All time:8,257
This week:560Up