PHPackages                             huoniao/swooleapi - 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. [API Development](/categories/api)
4. /
5. huoniao/swooleapi

ActiveLibrary[API Development](/categories/api)

huoniao/swooleapi
=================

api

06PHP

Since Jul 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yym955/swooleApi)[ Packagist](https://packagist.org/packages/huoniao/swooleapi)[ RSS](/packages/huoniao-swooleapi/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

swooleApi是什么?
-------------

[](#swooleapi是什么)

一个基于swoole框架下开发 快速开发api

swooleApi有哪些功能？
---------------

[](#swooleapi有哪些功能)

- Controller调度
    - 根据常见的 `/模块/功能/方法 ` 的路径模式进行功能模块化
    - 输出json格式的结果
- 待续

如何使用
----

[](#如何使用)

- 常规项目

```
define("File_ROOT", __DIR__);

require File_ROOT.'/swooleApi/autoload.php';

//注册应用路径
Huoniao\SwooleApi\Loader::addNameSpace('App', File_ROOT.'/App');
spl_autoload_register('\\Huoniao\\SwooleApi\\Loader::autoload');
```

在 Swoole\\Http\\Server 请求中

```
$serv->on('Request', function($request, $response){

    $rs = \Huoniao\SwooleApi\Dispatcher::execute($request,$response);
    $response->end($rs);
});
```

完整例子

[https://github.com/yym955/swooleApi/blob/master/examples/simple\_server.php](https://github.com/yym955/swooleApi/blob/master/examples/simple_server.php)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![yym955](https://avatars.githubusercontent.com/u/10969585?v=4)](https://github.com/yym955 "yym955 (15 commits)")

### Embed Badge

![Health badge](/badges/huoniao-swooleapi/health.svg)

```
[![Health](https://phpackages.com/badges/huoniao-swooleapi/health.svg)](https://phpackages.com/packages/huoniao-swooleapi)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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