PHPackages                             ethercap/yii2-api-base - 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. [API Development](/categories/api)
4. /
5. ethercap/yii2-api-base

ActiveYii2-extension[API Development](/categories/api)

ethercap/yii2-api-base
======================

为Json接口返回做了类MCV分层, 并提供代码生成

1.0.3(6y ago)3905↓100%32PHPPHP ^7.1

Since Jun 24Pushed 1y ago12 watchersCompare

[ Source](https://github.com/ethercap/yii2-api-base)[ Packagist](https://packagist.org/packages/ethercap/yii2-api-base)[ RSS](/packages/ethercap-yii2-api-base/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (12)Used By (2)

yii2-api-base
=============

[](#yii2-api-base)

### 一、文档。

[](#一文档)

1. [代码生成](docs/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90.md)
2. [接口规范](docs/%E6%8E%A5%E5%8F%A3%E8%A7%84%E8%8C%83.md)
3. [错误处理](docs/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86.md)
4. [更新](docs/%E6%9B%B4%E6%96%B0.md)

### 二、简介。

[](#二简介)

1. 功能
    1. 为接口返回做了类mvc分层；
    2. 代码生成；
    3. 接口字段类型检查和自动转换；

### 三、命名空间

[](#三命名空间)

```
ethercap\apiBase

```

### 四、安装:

[](#四安装)

```
composer require ethercap/yii2-api-base:@dev

```

### toDo

[](#todo)

- 返回字段的默认值设置

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~32 days

Total

4

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23f3710882e5d3771ba0a1f81ef432345da7eba06ead50b479c0d574b94bc281?d=identicon)[ethercap](/maintainers/ethercap)

---

Top Contributors

[![zhihuacui](https://avatars.githubusercontent.com/u/6275695?v=4)](https://github.com/zhihuacui "zhihuacui (66 commits)")[![buptlsp](https://avatars.githubusercontent.com/u/3291512?v=4)](https://github.com/buptlsp "buptlsp (1 commits)")[![linannan148](https://avatars.githubusercontent.com/u/39665425?v=4)](https://github.com/linannan148 "linannan148 (1 commits)")

---

Tags

jsonapiyii2extension

### Embed Badge

![Health badge](/badges/ethercap-yii2-api-base/health.svg)

```
[![Health](https://phpackages.com/badges/ethercap-yii2-api-base/health.svg)](https://phpackages.com/packages/ethercap-yii2-api-base)
```

###  Alternatives

[mikemadisonweb/yii2-elasticsearch

Yii2 extension for integration with Elasticsearch version 5.0 and above.

163.9k](/packages/mikemadisonweb-yii2-elasticsearch)[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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