monii / container-interop-laravel
Laravel adapter for Container Interop
Installs: 2 486
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.5
- container-interop/container-interop: ^1.1
- illuminate/contracts: ^5.0
Requires (Dev)
- illuminate/container: ^5.0
- illuminate/support: ^5.0
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2016-12-03 15:05:25 UTC
README
A Container Interop adapter for Laravel's Container.
Requirements
- PHP 5.5+
- illuminate/contracts ^5.0
Installation
$> composer require monii/container-interop-laravel
Usage
use Illuminate\Container\Container; use Monii\Interop\Container\Laravel\LaravelContainer; $actualLaravelContainer = new Container(); $container = new LaravelContainer($actualLaravelContainer); // $container implements Interop\Container\ContainerInterface
Service Provider
In your application configuration add Monii\Interop\Container\Laravel\ServiceProvider
to your providers
array.
$container = App::make('Interop\Container\ContainerInterface');
License
MIT, see LICENSE.
Community
Want to get involved? Here are a few ways:
- Find us in the #monii IRC channel on irc.freenode.org.
- Mention @moniidev on Twitter.