ckrack/slim-league-container-bridge

A bridge to use League\Container with Slim 3

3.1.7 2017-10-24 11:13 UTC

This package is auto-updated.

Last update: 2024-10-29 05:04:54 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