PHPackages                             yly/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. yly/response

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

yly/response
============

json-response

1.0(5y ago)0576MITPHPPHP &gt;=7.0.0

Since Jul 12Pushed 5y agoCompare

[ Source](https://github.com/762301880/response)[ Packagist](https://packagist.org/packages/yly/response)[ RSS](/packages/yly-response/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

json格式接口返回器
===========

[](#json格式接口返回器)

个人封装的laravel-json格式返回器（作者：姚留洋,个人博客[地址](https://www.cnblogs.com/yaoliuyang/)）

使用方法
----

[](#使用方法)

> 在控制器中引用类

```
use Response\ResponseLayout;

```

> 调用方法

```
# 参数1,`bool`类型就是说返回的是正确的还是错误的。参数2,`msg`返回成功或者错误的信息,参数3,`data`,为数组的形式['data'=>$data]
return ResponseLayout::apply(true,'成功',['data'=>$data]);

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

2135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea14fad86b9286aeeed9afde2a41c1820b50e0897e8cb478ff505125681b3616?d=identicon)[姚留洋](/maintainers/%E5%A7%9A%E7%95%99%E6%B4%8B)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[liyunfang/yii2-contextmenu

yii2 Extended for bootstrap-contextmenu plugin https://github.com/sydcanem/bootstrap-contextmenu

2432.4k1](/packages/liyunfang-yii2-contextmenu)[danielgsims/staticproxy

A thin proxy for static classes

118.2k](/packages/danielgsims-staticproxy)

PHPackages © 2026

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