nigelgreenway/colonel
最新稳定版本:v0.4.1
Composer 安装命令:
composer require nigelgreenway/colonel
包简介
A component based framework on StackPHP with PHP League components
README 文档
README
To use, simply add:
<?php require __DIR__ . '/../vendor/autoload.php'; $app = (new Colonel\HttpKernel( require_once __DIR__ . '/../Application/Configuration.php' ))->run();
An example configuration file:
<?php return [ 'debug' => false, 'routes' => [ 'DemoBundle' => [ 'hello_world' => [ 'pattern' => '/your/pattern/{var}', 'controller' => 'Path\\To\\Class::method', 'method' => 'GET', ], ], ], 'services' => [ 'di' => [ 'Path\\To\\Some\\Dependency' => [ 'class' => 'Path\\To\\Some\\Dependency', 'arguments' => [ 'Path\\To\\Some\\Other\\Dependency', ], ], 'Path\\To\\Some\\Other\\Dependency' => [ 'class' => 'Path\\To\\Some\\Other\\Dependency', ], ], ], ];
This will be fleshed more out soon...
统计信息
- 总下载量: 149
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPLv3
- 更新时间: 2015-07-14