erandir/plug-route
最新稳定版本:v4.6
Composer 安装命令:
composer require erandir/plug-route
包简介
Route library for php
README 文档
README
Powerful library for PHP routes
Use the system to work with GET, POST, PUT, DELETE, PATCH and OPTIONS requests.
Work with json, form-data and x-www-form-urlencoded body requests.
Use routes without virtualhost.
Simple and fast.
Install
composer require erandir/plug-route
Basic usage
$route = new \PlugRoute\PlugRoute(); $route->get('/') ->callback(function() { echo 'basic route'; }); $route->run();
See the full documentation
Old version
Install and use an old version, run:
composer require erandir/plug-route:v4.4
Access old documentation for a complete use.
See the full documentation
统计信息
- 总下载量: 7.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 49
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-27