2017 © Pedro Peláez
 

yii2-extension yii2-rest

Yii2 rest extension

image

deesoft/yii2-rest

Yii2 rest extension

  • Tuesday, September 8, 2015
  • by mdmunir
  • Repository
  • 3 Watchers
  • 4 Stars
  • 8,793 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

yii2-rest

Yii2 rest extension, (*1)

Installation

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

Either run, (*3)

php composer.phar require deesoft/yii2-rest "~1.0"

or add, (*4)

"deesoft/yii2-rest": "~1.0"

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

Usage

In controller, (*6)


public function actions() { return [ 'index' => [ 'class' => 'dee\rest\RestAction', ], ]; }

To use url rule. Set in config, (*7)

        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                [
                    'class' => 'dee\rest\UrlRule',
                    'actions' => [
                        'post' => 'post/index',

                    ],
                ],
            ],
        ],

The Versions

08/09 2015

dev-master

9999999-dev

Yii2 rest extension

  Sources   Download

BSD-3-Clause

The Requires

 

by Misbahul Munir

rest yii2