bauhaus / container
Define and implement a simple container
Requires
- php: >=7.1
- container-interop/container-interop: ^1.1
Requires (Dev)
- phpunit/phpunit: 5.3.*
This package is not auto-updated.
Last update: 2021-03-10 19:48:32 UTC
README
Introduction
The goal of this package is to provide useful container which can be used as superclass to create more complex implementations.
To understand how to work with the container, read the unit tests implemented using phpunit.
You can have a behavior summary of this Dependency Injection Container by runing the tests using the
testdox
option:$ vendor/bin/phpunit -c tests/config/phpunit.xml --testdox
See the Code Together section for more details.
Install
The easiest way to install it is by using composer:
$ composer require bauhaus/container:dev-master
Contribute
- Did you find some problem? You can easy open an issue here
- Do you want to help coding? Read the next section and let's code together :)
Code Together
First you will need to clone this repository:
$ git clone git@github.com:bauhausphp/package-container.git bauhausphp-package-container
$ cd bauhausphp-package-container
Second, you have to install the dependencies which are already with the
versions locked by the composer.lock
. So, you just have to install them using
composer:
$ composer install
Third, before starting code, you need to make sure that the tests pass. There are unit that were implemented using phpunit framework. To run them, use the following command:
$ vendor/bin/phpunit -c tests/config/phpunit.xml