【文件属性】:
文件名称:快速路由:PSR-15中间件以使用快速路由
文件大小:8KB
文件格式:ZIP
更新时间:2021-02-03 19:53:53
http middleware router psr-15 fastroute
中间件/快速路由
使用进行处理程序发现的中间件。
要求
PHP> = 7.2
安装
该软件包可通过Composer作为安装和自动加载。
composer require middlewares/fast-route
您可能还需要安装 。
例
此示例使用执行路由处理程序:
//Create the router dispatcher
$ dispatcher = FastRoute \simpleDispatcher ( function ( FastRoute \ RouteCollector $ r ) {
$ r -> addRoute ( 'GET' , '/hello/
【文件预览】:
fast-route-master
----composer.json(1KB)
----.github()
--------workflows()
----LICENSE(1KB)
----CONTRIBUTING.md(3KB)
----src()
--------FastRoute.php(2KB)
----CHANGELOG.md(3KB)
----README.md(4KB)