PHPackages                             qifen/webman-api-response - 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. qifen/webman-api-response

ActiveLibrary

qifen/webman-api-response
=========================

1.1(4y ago)0661MITPHP

Since Mar 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/xsxs89757/webman-api-response)[ Packagist](https://packagist.org/packages/qifen/webman-api-response)[ RSS](/packages/qifen-webman-api-response/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

功能类
===

[](#功能类)

```
composer require qifen/webman-api-response

```

类
=

[](#类)

webman Response 接口
------------------

[](#webman-response-接口)

```
use Qifen\WebmanApiResponse\ApiResponse;
use ApiResponse;

// 如果增加其他code 可以继承 Qifen\WebmanApiResponse\Code 并修改 配置文件的类库

class CustomCode extends Code {
    const CODE_CUSTOM = 99;

    const EXTENDS_MAP = [
        self::CODE_CUSTOM => '自定义消息'
    ];

    public static function getStatusText($code, string $msg = '') {
        if (!empty($msg)) return $msg;
        $map = self::STATUS_MAP + self::EXTENDS_MAP;
        return isset($map[$code]) ? $map[$code] : '';
    }
}
```

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

2

Last Release

1480d ago

### Community

Maintainers

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

---

Top Contributors

[![MustBeBlue](https://avatars.githubusercontent.com/u/163366625?v=4)](https://github.com/MustBeBlue "MustBeBlue (1 commits)")[![xsxs89757](https://avatars.githubusercontent.com/u/32379836?v=4)](https://github.com/xsxs89757 "xsxs89757 (1 commits)")

### Embed Badge

![Health badge](/badges/qifen-webman-api-response/health.svg)

```
[![Health](https://phpackages.com/badges/qifen-webman-api-response/health.svg)](https://phpackages.com/packages/qifen-webman-api-response)
```

###  Alternatives

[workerman/webman

High performance HTTP Service Framework.

2.6k84.4k58](/packages/workerman-webman)[webman/admin

Webman Admin

37642.1k10](/packages/webman-admin)[tinywan/jwt

JSON Web Token (JWT) for webman plugin

6447.9k19](/packages/tinywan-jwt)[webman/redis-queue

Redis message queue plugin for webman.

3099.2k19](/packages/webman-redis-queue)[workerman/rabbitmq

Asynchronous rabbitmq client for PHP based on workerman.

4212.9k6](/packages/workerman-rabbitmq)[webman/gateway-worker

1833.4k3](/packages/webman-gateway-worker)

PHPackages © 2026

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