PHPackages                             whiteki/simple-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. whiteki/simple-api-response

ActiveLibrary

whiteki/simple-api-response
===========================

简单的封装 api 响应

0.0.5(5y ago)199MITPHP

Since Mar 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/WhiteKingdom/simple-api-response)[ Packagist](https://packagist.org/packages/whiteki/simple-api-response)[ RSS](/packages/whiteki-simple-api-response/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)DependenciesVersions (6)Used By (0)

 simple-api-response
=====================

[](#-simple-api-response-)

> 根据 手摸手教你让 Laravel 开发 API 更得心应手  文章所写

> sql日志记录为

方便个人使用

Include
-------

[](#include)

- make:service

Installing
----------

[](#installing)

```
$ composer require whiteki/simple-api-response
```

Usage
-----

[](#usage)

1. 修改 bootstrap/app.php 文件下绑定的异常处理类

```
$app->singleton(
    Illuminate\Contracts\Debug\ExceptionHandler::class,
    \Whiteki\SimpleApiResponse\Exceptions\Handler::class
);
```

2. 在 controller 里 use trait

```
use \Whiteki\SimpleApiResponse\ApiResponse;
```

3. 新增 channel sqllog

```
'sqllog' => [
    'driver' => 'daily',
    'path' => storage_path('logs/sql.log'),
    'level' => 'debug',
    'days' => 14,
];
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

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

Every ~34 days

Total

5

Last Release

2104d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26162515?v=4)[王](/maintainers/WhiteKingdom)[@WhiteKingdom](https://github.com/WhiteKingdom)

---

Top Contributors

[![WhiteKingdom](https://avatars.githubusercontent.com/u/26162515?v=4)](https://github.com/WhiteKingdom "WhiteKingdom (5 commits)")

### Embed Badge

![Health badge](/badges/whiteki-simple-api-response/health.svg)

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

PHPackages © 2026

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