ckrack / slim-league-container-bridge
A bridge to use League\Container with Slim 3
Package info
bitbucket.org/ckrack/slim3-league-container
pkg:composer/ckrack/slim-league-container-bridge
3.1.7
2017-10-24 11:13 UTC
Requires
- php: >=5.5.0
- league/container: ^2.2
- slim/slim: ^3.7
Requires (Dev)
- phpunit/phpunit: 6.*
This package is auto-updated.
Last update: 2026-03-01 00:10:57 UTC
README
This library lets you replace Pimple container in Slim framework 3 with League/Container
Installation
$ composer require ckrack/slim-league-container-bridge
Usage
In your index.php file:
// load settings
$settings = require __DIR__.'/app/settings.php';
// Instantiate the app
$app = new App($settings);
Testing
Run the tests using the local phpunit in vendor/bin to use phpunit.xml settings.
$ ./vendor/bin/phpunit