An abstraction layer provide the skeleton for build rest api client (1-n).
Skeleton for build rest api client (1-n).
This Yii2 extension is an abstraction layer provide the skeleton for build an api client (1-n).
The preferred way to install this yii2-extension is through composer.
composer require "vxm/yii2-gateway-clients"
to the require section of your composer.json.
This is an abstraction layer, you MUST be create your own classes implements it. It designed for DRY principle when you need to build rest api client.
An abstract classes have been designed for implemented an interfaces. You should extends it for easier implements interfaces on your own classes.
|BaseGateway||Implemented GatewayInterface, abstract method your own class must create:
|BaseClient||Implemented ClientInterface, it not have an abstract method your own class should add properties an information for access gateway server api.|
|ResponseData||Abstract method your own class must create is
Click here to read simple example.