zapheus / slytherin-bridge
Slytherin Integration bridge for Zapheus framework.
v0.1.0
2018-05-18 03:46 UTC
Requires
- php: >=5.3.0
- rougin/slytherin: ~0.9
- zapheus/zapheus: ~0.1
Requires (Dev)
- phpunit/phpunit: ~4.2|~5.7
- scrutinizer/ocular: ~1.1.0
This package is auto-updated.
Last update: 2024-10-25 23:41:38 UTC
README
Converts Slytherin Integrations to Zapheus providers.
Installation
Install Slytherin Bridge
via Composer:
$ composer require zapheus/slytherin-bridge
Basic Usage
use Acme\Integrations\AuthIntegration; use Acme\Integrations\RoleIntegration; use Rougin\Slytherin\Container\Container; use Zapheus\Bridge\Slytherin\BridgeProvider; use Zapheus\Container\Container; $providers = array(new AuthIntegration, new RoleIntegration); $provider = new BridgeProvider($providers); $container = $provider->register(new Container); $slytherin = $container->get(BridgeProvider::CONTAINER);
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Credits
License
The MIT License (MIT). Please see LICENSE for more information.