2017 © Pedro Peláez
 

library container

Lightweight DI container

image

catfishphp/container

Lightweight DI container

  • Friday, April 13, 2018
  • by davidstanley01
  • Repository
  • 5 Watchers
  • 11 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Container (Dependency Injection)

Logo, (*1)

Software License Build Status, (*2)

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)

Install

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

Testing

bash $ vendor/bin/phpunit, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

13/04 2018

dev-master

9999999-dev

Lightweight DI container

  Sources   Download

MIT

The Requires

 

The Development Requires