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 All time: 8,261 This week: 455Up
Version Licenses PHP version Categories
fcontainer 1.0Artistic License, B...5PHP 5, Language, Design Patterns


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: 334711 in Japan Japan
Week rank: 298 Up2 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  
This week:0
All time:8,261
This week:455Up