yii2-rest 0,0,0,0 travis-ci Packagist phpunit

Yii2 REST Client

3 years after

Yii2 REST Client

Latest Stable Version Build Status

What is this?

Screen

Installation

The preferred way to install this extension is through composer.

Add

"zhuravljov/yii2-rest": "*",
"yiisoft/yii2-httpclient": "@dev"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'bootstrap' => ['rest-client'],
    'modules' => [
        'rest-client' => [
            'class' => 'zhuravljov\yii\rest\Module',
            'baseUrl' => 'http://localhost/api/v1',
        ],
    ],
];

You can then access Rest Client through the following URL:

http://localhost/path/to/index.php?r=rest-client

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/index.php/rest-client

Related Repositories

yii2-starter-kit

yii2-starter-kit

Yii2 Starter Kit ...

awesome-yii2

awesome-yii2

Yii2 干货集 ...

angular-yii2

angular-yii2

Just example of application on AngularJS with server-side Yii2 Rest API. ...

yii2-oauth2-rest-template

yii2-oauth2-rest-template

Yii2 Rest APi Template with OAuth2 server ...


Top Contributors

zhuravljov johonunu

Dependencies

package version
php >=5.5.0
yiisoft/yii2 *
yiisoft/yii2-bootstrap *
yiisoft/yii2-httpclient *

Releases

-   1.0.3 zip tar
-   1.0.2 zip tar
-   1.0.1 zip tar
-   1.0.0 zip tar