h3x3d / container
Simple DI Container
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 101
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/h3x3d/container
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-01-31 21:17:45 UTC
README
$cont = new \H3x3d\Container(); // $cont = \H3x3d\Container::instance(); $cont->set('test', function ($c) { return 10; }); $cont->set('test1', function ($c, $test) { echo $test; return $test; }); $cont->get('test1', 'I\'m test variable'); $f = $cont->factory('test1'); $f('test123');