sergiors/lullaby
最新稳定版本:3.0.0
Composer 安装命令:
composer require sergiors/lullaby
包简介
Configuration for Silex like Symfony
README 文档
README
Lullaby is a layer on Silex\Application, it adds a better way to organize your project, like Symfony framework.
Install
composer require sergiors/lullaby "dev-master"
How to use
Something like this
namespace Acme\Acme\Apps\Fluffy; use Sergiors\Lullaby\Application\Application; class Fluffy extends Application { }
namespace Acme\Acme; use Sergiors\Lullaby\Kernel; class AppKernel extends Kernel { public function registerApps() { return [ new Fluffy() ]; } public function registerProviders() { return []; } }
In your index file
$env = 'dev'; $debug = false; $rootDir = __DIR__; $app = new Acme\Acme\AppKernel($env, $debug, $rootDir); $app->run();
License
MIT
统计信息
- 总下载量: 679
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-14