A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.
wayhood/hyperf-laravel is a Laravel package for a coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares..
It currently has 0 GitHub stars and 179 downloads on Packagist.
Install it with composer require wayhood/hyperf-laravel.
Discover more Laravel packages by wayhood
or browse all Laravel packages to compare alternatives.
Last updated
适配laravel,
php8+
composer require wayhood/hyperf-laravel
Hyperf\HttpServer\Request Hyperf\HttpServer\Contract\RequestInterface
增加 only / get 方法 与 laravel用法一致
参数定义:(定义了参数后url上的路径必须以 / 结尾,否则不能访问)
- {id}:必选
- [{id}]:选填
修改 通过 aop切面重写 路由收集器以适配没有 / 时也可以访问
Route::get('/api/test/{a}/{b}/[{c}]', function($a, $b, $c=null) {
var_dump($a, $b, $c);
});