ckrack / slim-league-container-bridge
使用 League\Container 与 Slim 3 的桥梁
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: 2024-09-29 04:49:15 UTC
README
这个库允许你在 Slim 框架 3 中用 League/Container 替换 Pimple 容器
安装
$ composer require ckrack/slim-league-container-bridge
使用方法
在你的 index.php
文件中
// load settings
$settings = require __DIR__.'/app/settings.php';
// Instantiate the app
$app = new App($settings);
测试
使用本地的 vendor/bin
中的 phpunit 来运行测试,使用 phpunit.xml 的设置。
$ ./vendor/bin/phpunit