PHPackages                             fbacks/yii2-api-template - 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. [Framework](/categories/framework)
4. /
5. fbacks/yii2-api-template

ActiveProject[Framework](/categories/framework)

fbacks/yii2-api-template
========================

Yii 2 REST API Template

v0.1(6y ago)2122[2 PRs](https://github.com/FeedbackSoftware/yii2-api-template/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Nov 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/FeedbackSoftware/yii2-api-template)[ Packagist](https://packagist.org/packages/fbacks/yii2-api-template)[ Docs](http://fbacks.com/)[ RSS](/packages/fbacks-yii2-api-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (7)Used By (0)

Yii 2 API Template
==================

[](#yii-2-api-template)

This is a a REST API template built using Yii2. This template use Yii2-Micro approach so it will be lightweight and easy to deploy.

[![Packagist Version](https://camo.githubusercontent.com/7dba6efdf99f653bd6bf2f142a808438531cc57175650f6c843cdc15fb16cac2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666261636b732f796969322d6170692d74656d706c617465)](https://camo.githubusercontent.com/7dba6efdf99f653bd6bf2f142a808438531cc57175650f6c843cdc15fb16cac2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666261636b732f796969322d6170692d74656d706c617465)[![Packagist Downloads](https://camo.githubusercontent.com/f9b693ff317aa4d5664b20771d79765675929217e9ccdf056cd2a86d80f84ca3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666261636b732f796969322d6170692d74656d706c617465)](https://camo.githubusercontent.com/f9b693ff317aa4d5664b20771d79765675929217e9ccdf056cd2a86d80f84ca3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666261636b732f796969322d6170692d74656d706c617465)

The detailed documentation can be found at [docs/README.md](docs/README.md).

Requirements
------------

[](#requirements)

The minimum requirement by this project template is that your Web server supports PHP 5.4.0. Also it is recommended that your php installation has the following modules enabled:

- intl: to use advanced parameters formatting in Yii::t()

To check the full requirements, please copy `requirements.php` from the project root to `api/web` folder, then navigate to the file from your web browser.

Installation
------------

[](#installation)

The preferred way to install this template is through composer using the following command:

```
composer create-project --prefer-dist fbacks/yii2-api-template [app_name]

```

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    tests/               contains tests for common classes
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
api
    config/              contains api configurations
    modules/             contains Web controller classes
    runtime/             contains files generated during runtime
    tests/               contains tests for api application
    web/                 contains the entry script and Web resources
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40bd7b33417448d021f72fc4c7a52d309b707fbdc7df4d17920465716506961a?d=identicon)[Feedback Software](/maintainers/Feedback%20Software)

---

Top Contributors

[![Angelleal](https://avatars.githubusercontent.com/u/4020877?v=4)](https://github.com/Angelleal "Angelleal (10 commits)")[![mmariale](https://avatars.githubusercontent.com/u/12596510?v=4)](https://github.com/mmariale "mmariale (8 commits)")

---

Tags

apiapi-restapi-serverphpyii2yii2-templateapiframeworkrestyii2project template

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fbacks-yii2-api-template/health.svg)

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

###  Alternatives

[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1281.9k](/packages/izyue-yii2-app-advanced)

PHPackages © 2026

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