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: 220 All time: 8,202 This week: 355Up
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: 37
All time rank: 332311 in Japan Japan
Week rank: 595 Up3 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:220
This week:0
All time:8,202
This week:355Up
For more information send a message to info at phpclasses dot org.