2017 © Pedro Peláez
 

yii2-extension yii2-api

Helper classes to create RESTful API in yii2.

image

umbalaconmeogia/yii2-api

Helper classes to create RESTful API in yii2.

  • Tuesday, July 17, 2018
  • by umbalaconmeogia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-api

Helper classes to create RESTful API in yii2., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

$ composer require umbalaconmeogia/yii2-api "@dev"

or add, (*4)

"umbalaconmeogia/yii2-api": "@dev"

to the require section of your composer.json file and run composer update., (*5)

Add SubSystemUser

For client system that use SubSystemUser, you should run migration to create sub_system_user table., (*6)

Configuring migration path.

'migrate' => [
    'class' => 'yii\console\controllers\MigrateController',
    'migrationPath' => [
        '@console/migrations',
        '@vendor/umbalaconmeogia/yii2-api/src/migrations',
    ],
],

Namespaced Migrations

For yii2 advanced template, add to console/config/main.php, (*7)

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationPath' => null, // disable non-namespaced migrations if app\migrations is listed below
        'migrationNamespaces' => [
            'console\migrations', // Common migrations for the whole application
            'umbalaconmeogia\yii2api\migrations', // Migrations for the specific extension
        ],
    ],
],

For yii2 basic template, add to app/config/web.php, (*8)

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationPath' => null, // disable non-namespaced migrations if app\migrations is listed below
        'migrationNamespaces' => [
            'app\migrations', // Common migrations for the whole application
            'umbalaconmeogia\yii2api\migrations', // Migrations for the specific extension
        ],
    ],
],

License

yii2-api is released under the MIT License. See the bundled LICENSE for details., (*9)

The Versions

17/07 2018

dev-master

9999999-dev

Helper classes to create RESTful API in yii2.

  Sources   Download

MIT

by Tran Trung Thanh

yii2 utility

17/07 2018

v0.0.2

0.0.2.0

Helper classes to create RESTful API in yii2.

  Sources   Download

MIT

by Tran Trung Thanh

yii2 utility

10/07 2018

v0.0.1

0.0.1.0

Helper classes to create RESTful API in yii2.

  Sources   Download

MIT

by Tran Trung Thanh

yii2 utility