PHPackages                             cdyun/webman-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cdyun/webman-response

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cdyun/webman-response
=====================

Webman plugin cdyun/webman-response

v1.0.4(2mo ago)0181MITPHPPHP ^8.1

Since Sep 22Pushed 2mo agoCompare

[ Source](https://github.com/cdyun303/webman-response)[ Packagist](https://packagist.org/packages/cdyun/webman-response)[ RSS](/packages/cdyun-webman-response/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (1)

Webman Response插件
=================

[](#webman-response插件)

> 提供响应处理功能

安装
--

[](#安装)

```
composer require cdyun/webman-response
```

使用示例
----

[](#使用示例)

### 常规用法

[](#常规用法)

```
use Cdyun\WebmanResponse\Response;

//获取配置
ResponseEnforcer::getConfig($name = null, $default = null);

//成功
ResponseEnforcer::success($msg = '操作成功', $data = null);

//失败
ResponseEnforcer::error($msg = '操作失败', $data = null);

//异常
ResponseEnforcer::abort($msg = '服务器内部错误', $code = null);

//分页
ResponseEnforcer::paginate( $data = [], $totalCount = 0, $msg = '加载完成');

//结果
ResponseEnforcer::result($result, $is_encrypt = false);
```

### 加密/解密

[](#加密解密)

```
use Cdyun\WebmanResponse\EncryptorEnforcer;

//获取配置
ResponseEnforcer::getConfig($name = null, $default = null);

//RSA解密
EncryptorEnforcer::rsaDecrypt($data);

//AES解密
EncryptorEnforcer::aesDecrypt($data, $key, $iv);

//AES加密
EncryptorEnforcer::aesEncrypt($data, $key, $iv);
```

### 中间件-加密/解密

[](#中间件-加密解密)

```
use Cdyun\WebmanResponse\middleware\DecryptMiddleware;
```

相关链接
----

[](#相关链接)

- [Packagist 仓库](https://packagist.org/packages/cdyun/webman-response)
- [GitHub 仓库](https://github.com/cdyun303/webman-response)
- [问题反馈](https://github.com/cdyun303/webman-response/issues)

版本要求
====

[](#版本要求)

- php: &gt;=8.1

许可证
===

[](#许可证)

MIT License

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance87

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Every ~57 days

Total

4

Last Release

66d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/743ffd5ad49f71554f068efde387da76b1a14f3cfd608928fc6c881d3dd22dfb?d=identicon)[clrainy](/maintainers/clrainy)

---

Top Contributors

[![cdyun303](https://avatars.githubusercontent.com/u/146640329?v=4)](https://github.com/cdyun303 "cdyun303 (8 commits)")

---

Tags

responsephpwebmancdyun

### Embed Badge

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

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)[appstract/laravel-response-macros

Extra Response Macro's for Laravel

321.5k](/packages/appstract-laravel-response-macros)

PHPackages © 2026

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