Converts PSR-11 containers to Zapheus containers and vice versa. Also contains an implementation of PSR-11.
Install PSR-11 Bridge
via Composer:
$ composer require zapheus/psr-11-bridge
Install a PSR-11 compliant package first (e.g League Container):
$ composer require league/container
use Zapheus\Bridge\Psr\Zapheus\Container;
$psr = new League\Container\Container;
// ... set dependencies here
// Zapheus\Container\ContainerInterface
$container = new Container($psr);
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.
$ composer test
The MIT License (MIT). Please see LICENSE for more information.