2017 © Pedro PelĂĄez
 

yii2-extension yii2-rest-backend

Components to use a REST backend in Yii2 applications

image

oteixido/yii2-rest-backend

Components to use a REST backend in Yii2 applications

  • Sunday, April 1, 2018
  • by oteixido
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 REST backend License: GPL v3 GitHub version Build Status

REST backend for Yii2 applications., (*1)

Installation

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

Either run, (*3)

$ composer require oteixido/yii2-rest-backend "*"

or add, (*4)

"oteixido/yii2-rest-backend": "*"

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

Configuration

To use this extension, simply add the following code in your application configuration:, (*6)

return [
    //....
    'components' => [
        'httpClient' => [
            'class' => '\oteixido\rest\http\HttpClient',
            'baseUrl' => 'https://localhost.localdomain/api/v1',
            'username' => 'username',    // Default no username
            'password' => 'password',    // Default no password
            'timeout' => 5,              // Default 10 seconds
            'sslVerify' => false,        // Default true
        ],
    ],
];

Testing

Create docker image yii2-rest-backend for testing environment., (*7)

$ docker build . --tag yii2-rest-backend
$ docker run -it --rm -v "$PWD":/app -w /app yii2-rest-backend composer install

Execute tests., (*8)

$ docker run -it --rm -v "$PWD":/app -w /app yii2-rest-backend ./vendor/bin/codecept run --coverage

License

GNU General Public License v3.0, (*9)

The Versions

01/04 2018

dev-master

9999999-dev

Components to use a REST backend in Yii2 applications

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Oriol TeixidĂł

extension yii2

31/03 2018

0.1

0.1.0.0

Components to use a REST backend in Yii2 applications

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

by Oriol TeixidĂł

extension yii2