strident / phimple
Simple dependency injection container, inspired by Pimple.
Installs: 330
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
pkg:composer/strident/phimple
Requires
- php: >=5.4
Requires (Dev)
- codeclimate/php-test-reporter: ~0.1
- phpunit/phpunit: ~4.5
This package is not auto-updated.
Last update: 2025-10-21 07:21:11 UTC
README
Phimple is an extremely lightweight dependency injection container, heavily inspired by Pimple.
##Installation
Phimple is available as a Composer package. It can be included in your project by running the following command:
$ composer require strident/phimple ~2.0
##Usage
Phimple is easy to get going with (just like Pimple really):
use Phimple\Container; $container = new Container();
Phimple differs from Pimple internally in some ways, and also in it's API. The API change was the main reason I decided to develop Phimple. There are 2 concepts; services and parameters.