dev-master
9999999-dev https://github.com/zapheus/psr-11-bridgePSR-11 bridge for Zapheus framework.
MIT
The Requires
- php >=5.3.0
- psr/container ~1.0
- zapheus/zapheus ~0.1
The Development Requires
container bridge psr-11 zapheus
PSR-11 bridge for Zapheus framework.
![Latest Version on Packagist][ico-version]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
Converts PSR-11 containers to Zapheus containers and vice versa. Also contains an implementation of PSR-11., (*2)
Install PSR-11 Bridge
via Composer:, (*3)
``` bash $ composer require zapheus/psr-11-bridge, (*4)
## Basic Usage ### PSR-11 to Zapheus Install a PSR-11 compliant package first (e.g [League Container](http://container.thephpleague.com)): ``` bash $ composer require league/container
``` php use Zapheus\Bridge\Psr\Zapheus\Container;, (*5)
$psr = new League\Container\Container;, (*6)
// ... set dependencies here, (*7)
// Zapheus\Container\ContainerInterface $container = new Container($psr);, (*8)
### Zapheus to PSR-11 ``` php use Zapheus\Bridge\Psr\Interop\Container; $zapheus = new Zapheus\Container\Container; // ... set dependencies here // Psr\Container\ContainerInterface $container = new Container($zapheus);
Please see CHANGELOG for more information what has changed recently., (*9)
bash
$ composer test
, (*10)
The MIT License (MIT). Please see LICENSE for more information., (*11)
PSR-11 bridge for Zapheus framework.
MIT
container bridge psr-11 zapheus