PHPackages                             wayhood/hyperf-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. wayhood/hyperf-laravel

ActiveLibrary

wayhood/hyperf-laravel
======================

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

3.1.x-dev(2y ago)0179Apache-2.0PHPPHP &gt;=8.1

Since Jun 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wayhood/hyperf-laravel)[ Packagist](https://packagist.org/packages/wayhood/hyperf-laravel)[ RSS](/packages/wayhood-hyperf-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

hyperf-laravel
==============

[](#hyperf-laravel)

适配laravel，

环境
--

[](#环境)

php8+

安装 使用php8
---------

[](#安装-使用php8)

```
composer require wayhood/hyperf-laravel

```

适配
--

[](#适配)

`Hyperf\HttpServer\Request` `Hyperf\HttpServer\Contract\RequestInterface`

增加 only / get 方法 与 laravel用法一致

路由适配
----

[](#路由适配)

#### hyperf 原来路由

[](#hyperf-原来路由)

```
- 参数定义：(定义了参数后url上的路径必须以 / 结尾，否则不能访问)
    - {id}：必选
    - [{id}]：选填

```

修改 通过 aop切面重写 路由收集器以适配没有 / 时也可以访问

#### 示例

[](#示例)

```
Route::get('/api/test/{a}/{b}/[{c}]', function($a, $b, $c=null) {
    var_dump($a, $b, $c);
});

```

#### 请求

[](#请求)

-  is ok
-  is ok
-  is ok 默认hyperf不支持

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

890d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1ec384043dc1c9dc6666c017a0404e06716ece7dbef992047e1c83741c649bc?d=identicon)[wayhood](/maintainers/wayhood)

---

Top Contributors

[![netyum](https://avatars.githubusercontent.com/u/195082?v=4)](https://github.com/netyum "netyum (9 commits)")

---

Tags

phphyperf

### Embed Badge

![Health badge](/badges/wayhood-hyperf-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/wayhood-hyperf-laravel/health.svg)](https://phpackages.com/packages/wayhood-hyperf-laravel)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
