PHPackages                             janoko-dev/yii2-rest-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. janoko-dev/yii2-rest-api

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

janoko-dev/yii2-rest-api
========================

Package for implement restAPI in yii2 framework

v1.0.0(5y ago)1186MITPHP

Since Jun 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/janoko-dev/yii2-restAPI)[ Packagist](https://packagist.org/packages/janoko-dev/yii2-rest-api)[ RSS](/packages/janoko-dev-yii2-rest-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

yii2-restAPI
============

[](#yii2-restapi)

Package for implement restAPI in yii2 framework

Change controller
-----------------

[](#change-controller)

```
class AuthController extends janokoDev\restAPI\API
{
  // ....
}
```

Behaviour
---------

[](#behaviour)

```
class AuthController extends janokoDev\restAPI\API
{
    public function behaviors()
    {
        $behv = [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'login' => ['post']
                ],
            ],
            'authenticator' => [
                'except' => ['login']
            ]
        ];

        $behv = array_merge_recursive(parent::behaviors(), $behv);
        return $behv;
    }

    //.....
}
```

Config for json parsing
-----------------------

[](#config-for-json-parsing)

change app/config/main.php. Add JSON parser in componen -&gt; request.

```
return [

    // .....

    'components' => [
        'request' => [

            // .....

            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ]
        ],
    ],

    // .....
];
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

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

2148d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18183700?v=4)[Mohammad Gupron](/maintainers/ghuvrons)[@ghuvrons](https://github.com/ghuvrons)

---

Top Contributors

[![ghuvrons](https://avatars.githubusercontent.com/u/18183700?v=4)](https://github.com/ghuvrons "ghuvrons (3 commits)")[![janoko-dev](https://avatars.githubusercontent.com/u/62167901?v=4)](https://github.com/janoko-dev "janoko-dev (3 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/janoko-dev-yii2-rest-api/health.svg)

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

###  Alternatives

[dotzero/yii2-amocrm

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

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[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)
