PHPackages                             damidevelopment/yii2-api - 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. damidevelopment/yii2-api

ActiveProject[API Development](/categories/api)

damidevelopment/yii2-api
========================

Yii 2 API Project Template

v1.0.1(6y ago)05[1 PRs](https://github.com/damidevelopment/yii2-api/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jun 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/damidevelopment/yii2-api)[ Packagist](https://packagist.org/packages/damidevelopment/yii2-api)[ Docs](http://www.damidev.com/)[ RSS](/packages/damidevelopment-yii2-api/feed)WikiDiscussions dev Synced today

READMEChangelogDependencies (13)Versions (6)Used By (0)

Yii2 API template
=================

[](#yii2-api-template)

REQUIREMENTS
------------

[](#requirements)

The minimum requirement by this project template that your Web server supports PHP 7.2.0.

CREATE NEW PROJECT USING TEMPLATE
---------------------------------

[](#create-new-project-using-template)

### Install via Composer

[](#install-via-composer)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

```
composer create-project --prefer-dist damidev/yii2-api api

```

INSTALLATION
------------

[](#installation)

If you do not have [Composer](http://getcomposer.org/), you may install it by following the instructions at [getcomposer.org](http://getcomposer.org/doc/00-intro.md#installation-nix).

You can then install this site using the following command:

```
php composer.phar install
php yii migrate

```

In composer.json we have postInstall script which setup permissions on files and folders. But if php script itself can't change his own files and folders, you have to change permissions yourself.

- `runtime/` - folder for caching and logging
- `web/assets/` - folder for caching js and css
- `yii` - executable for running terminal scripts (on windows machine yii.bat should be executable too, I guess)

### Endpoint dev checklist

[](#endpoint-dev-checklist)

- create model
- create resource model
- create controller or/and action
- define verbs
- add AccessControl rule?
- API documentation of request (by actions annotation)
- API documentation of response (inside definitions)
- API documentation of resource (by resource's annotation)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.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 ~0 days

Total

2

Last Release

2508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a9d02bef4deaf2369bae885f187a5e8dfe73087bfcd57a699a51ada577e6b8f?d=identicon)[damidevelopment](/maintainers/damidevelopment)

---

Top Contributors

[![Rutherther](https://avatars.githubusercontent.com/u/12197024?v=4)](https://github.com/Rutherther "Rutherther (8 commits)")[![martinstepanek](https://avatars.githubusercontent.com/u/17912717?v=4)](https://github.com/martinstepanek "martinstepanek (5 commits)")[![hrasekj](https://avatars.githubusercontent.com/u/6674565?v=4)](https://github.com/hrasekj "hrasekj (1 commits)")

---

Tags

apiyii2project template

### Embed Badge

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

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

###  Alternatives

[dotzero/yii2-amocrm

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

1639.7k](/packages/dotzero-yii2-amocrm)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

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