bauhaus/container

This package is abandoned and no longer maintained. No replacement package was suggested.

Define and implement a simple container

v0.2.0 2017-01-05 21:51 UTC

This package is not auto-updated.

Last update: 2021-03-10 19:48:32 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

Build Status Coverage Status Codacy Badge

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

  1. Did you find some problem? You can easy open an issue here
  2. 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