bulton-fr/bfw-fastroute
Composer 安装命令:
composer require bulton-fr/bfw-fastroute
包简介
Router module for BFW
README 文档
README
Router module for the framework BFW. Use the lib fastRoute
Install :
You can use composer to get the module : composer require bulton-fr/bfw-fastroute @stable
And to install the module : ./vendor/bin/bfwInstallModules
Config :
All config file for this module will be into app/config/bfw-fastroute/. There is one file to configure (manifest.json is for the module update system).
The file routes.php
routes: All routes defined. You have an exemple for the format to use. For the key "target", referer you to the controller module used.
Example :
Extract from the BFW wiki, an exemple of the config file to use with the module bfw-controller.
<?php return [ 'routes' => [ '/test' => [ 'target' => ['\Controller\Test', 'index'] ] ] ];
统计信息
- 总下载量: 235
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2016-01-23