PHPackages                             easyswoole/http-annotation - 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. [Framework](/categories/framework)
4. /
5. easyswoole/http-annotation

ActiveLibrary[Framework](/categories/framework)

easyswoole/http-annotation
==========================

php stander lib

3.2.22(1y ago)698.9k—8.6%11[8 issues](https://github.com/easy-swoole/http-annotation/issues)[2 PRs](https://github.com/easy-swoole/http-annotation/pulls)12Apache-2.0PHPPHP &gt;=8.1

Since Feb 10Pushed 9mo agoCompare

[ Source](https://github.com/easy-swoole/http-annotation)[ Packagist](https://packagist.org/packages/easyswoole/http-annotation)[ Docs](https://www.easyswoole.com/)[ RSS](/packages/easyswoole-http-annotation/feed)WikiDiscussions 3.x Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (86)Used By (12)

HttpAnnotation
==============

[](#httpannotation)

安装
--

[](#安装)

```
composer require easyswoole/http-annotation
```

注解规范
----

[](#注解规范)

### Example

[](#example)

```
use EasySwoole\Http\AbstractInterface\AbstractRouter;
use EasySwoole\Http\Dispatcher;
use EasySwoole\Http\Request;
use EasySwoole\Http\Response;
use EasySwoole\HttpAnnotation\Utility;
use Swoole\Http\Server;

$nameSpace = 'EasySwoole\HttpAnnotation\Tests\ControllerExample';
$dispatcher = new Dispatcher();
$dispatcher->setNamespacePrefix($nameSpace);
$dispatcher->enableFakeRouter();
$dispatcher->setOnRouterCreate(function (AbstractRouter $router)use($nameSpace){
    Utility::mappingRouter($router->getRouteCollector(),"tests/ControllerExample",$nameSpace);
});
$http = new Server("127.0.0.1", 9501);
$http->set([
    "worker_num"=>1
]);

$http->on("request", function ($request, $response) use($dispatcher){
    $request_psr = new Request($request);
    $response_psr = new Response($response);
    $dispatcher->dispatch($request_psr, $response_psr);
    $response_psr->__response();
});

$http->start();
```

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88.6% 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

Every ~24 days

Recently: every ~100 days

Total

85

Last Release

276d ago

Major Versions

1.5.0 → 2.0.02021-01-27

2.2.1 → 3.0.12022-09-28

2.x-dev → 3.2.222024-10-24

PHP version history (3 changes)1.0.0PHP &gt;=7.1.0

3.0.1PHP &gt;=8.1

2.2.2PHP &gt;=8.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/45c234d5f129ea570e630425636299127647534f0c2cbb073555e2c45d403d6f?d=identicon)[kiss291323003](/maintainers/kiss291323003)

---

Top Contributors

[![kiss291323003](https://avatars.githubusercontent.com/u/24490609?v=4)](https://github.com/kiss291323003 "kiss291323003 (527 commits)")[![Player626](https://avatars.githubusercontent.com/u/44792981?v=4)](https://github.com/Player626 "Player626 (35 commits)")[![Bajiu10](https://avatars.githubusercontent.com/u/37040388?v=4)](https://github.com/Bajiu10 "Bajiu10 (20 commits)")[![XueSiLf](https://avatars.githubusercontent.com/u/31389659?v=4)](https://github.com/XueSiLf "XueSiLf (11 commits)")[![tioncico](https://avatars.githubusercontent.com/u/31308307?v=4)](https://github.com/tioncico "tioncico (2 commits)")

---

Tags

asyncframeworkswooleeasyswoole

### Embed Badge

![Health badge](/badges/easyswoole-http-annotation/health.svg)

```
[![Health](https://phpackages.com/badges/easyswoole-http-annotation/health.svg)](https://phpackages.com/packages/easyswoole-http-annotation)
```

###  Alternatives

[easyswoole/easyswoole

An efficient swoole framework

4.8k190.3k55](/packages/easyswoole-easyswoole)[easyswoole/mysqli

An efficient swoole framework

34124.2k33](/packages/easyswoole-mysqli)[easyswoole/orm

php stander lib

3090.9k27](/packages/easyswoole-orm)[easyswoole/compiler

easyswoole component

691.3k](/packages/easyswoole-compiler)[easyswoole/actor

easyswoole component

1410.4k](/packages/easyswoole-actor)

PHPackages © 2026

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