PHPackages                             ppeerit/think-apicode - 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. ppeerit/think-apicode

ActiveLibrary

ppeerit/think-apicode
=====================

apicode for thinkphp5

v0.0.1(9y ago)426MITPHPPHP &gt;=5.4.0

Since Nov 10Pushed 9y ago2 watchersCompare

[ Source](https://github.com/ppeerit/think-apicode)[ Packagist](https://packagist.org/packages/ppeerit/think-apicode)[ RSS](/packages/ppeerit-think-apicode/feed)WikiDiscussions master Synced 2mo ago

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

think-apicode
=============

[](#think-apicode)

think-apicode 是基于thinkphp5的简单的接口数据生成工具

安装
--

[](#安装)

```
composer require ppeerit\apicode

```

配置
--

[](#配置)

在扩展配置目录新建配置文件apicode.php

```
return [
	'type' => 'json',//输出格式
];
```

加载
--

[](#加载)

```
use Ppeerit\Apicode\Apicode;
```

使用
--

[](#使用)

输出错误信息

```
// 参数为[错误信息，错误代码，数组形式的数据];
Apicode::error(['error message','9999', $data]);
```

输出成功信息

```
// 参数为[成功信息，跳转地址，数组形式的数据];
Apicode::success(['success message',$url, $data]);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

3474d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ppeerit-think-apicode/health.svg)

```
[![Health](https://phpackages.com/badges/ppeerit-think-apicode/health.svg)](https://phpackages.com/packages/ppeerit-think-apicode)
```

PHPackages © 2026

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