dev-master
9999999-devLightweight DI container
MIT
The Requires
- php ^7.1.3
- psr/container ^1.0
- tightenco/collect ^5.6
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Lightweight DI container
, (*1)
This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request., (*3)
Via Composer, (*4)
``` bash $ composer require catfishphp/container, (*5)
## Requirements The following versions of PHP are supported by this version. * PHP 7.1 * PHP 7.2 ## Usage ```php <?php $container = new Catfish\Container\Container; // add a service to the container $container->add('service', 'Acme\Service\SomeService'); // retrieve the service from the container $service = $container->get('service'); var_dump($service instanceof Acme\Service\SomeService); // true
bash
$ vendor/bin/phpunit, (*6)
Please see CONTRIBUTING for details., (*7)
The MIT License (MIT). Please see License File for more information., (*8)
Lightweight DI container
MIT