Skip to content
This repository has been archived by the owner on Jan 15, 2018. It is now read-only.

bauhausphp/container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bauhaus PHP - Package Container

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 [email protected]: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