PHP Classes

IoC: Resolve class dependencies from configuration

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 194 All time: 8,542 This week: 455Up
Version License PHP version Categories
ioc 1.0GNU General Publi...5.0PHP 5, Language, Design Patterns
Description 

Author

This class can resolve class dependencies from configuration.

It can load classes and instantiate dependent objects from definitions passed in an array with the details of class dependencies.

Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 8 packages by
Country: Armenia Armenia
Age: 43
All time rank: 9051 in Armenia Armenia
Week rank: 187 Up1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 2x

Details

This PHP class implements IoC (Inversion of Control) principle to resolve dependencies between classes and acheive loose coupling. IoC is implemented using dependency constructor injection. Dependencies should be defined in configuration file Copyright (C) 2012 Mark Rolich

  Files folder image Files (12)  
File Role Description
Files folder imagelib (8 files)
Accessible without login Plain text file example.php Example Example
Accessible without login Plain text file iocconfig.php Conf. Dependencies configuration
Accessible without login Plain text file license.txt Lic. LICENSE
Accessible without login Plain text file README Data README

  Files folder image Files (12)  /  lib  
File Role Description
  Plain text file Auth.php Class Stub authentication class
  Plain text file Autoloader.php Class Classes loader
  Plain text file Config.php Class Stub configuration class
  Plain text file DB.php Class Stub database class
  Plain text file IOC.php Class Main class
  Plain text file Log.php Class Stub logging class
  Plain text file SuperUser.php Class Stub class
  Plain text file User.php Class Stub class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:194
This week:0
All time:8,542
This week:455Up