mrjulio / rapture-container
Rapture Container component
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/mrjulio/rapture-container
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2025-10-04 20:21:17 UTC
README
PHP simple DI container with reflection.
Requirements
- PHP v5.4
- php-pcre
Install
composer require mrjulio/rapture-container
Quick start
$container = Container::instance('namespace'); // optional namespace // store $container['request'] = Request::fromGlobals(); // fetch $container['request']->getUri()->getPath(); // reflection Container::instance()['\Demo\User']; // runs reflection and caches result // no reflection on 2nd run Container::instance()->getNew('\Demo\User'); // get a new instance
About
Author
Iulian N. rapture@iuliann.ro
Testing
cd ./test && phpunit
License
Rapture PHP Container is licensed under the MIT License - see the LICENSE
file for details.