PHP Api ArchieBot Proxy for Laravel 5.x
Summary
Introduction
More information soon.
Installation
Add the following line to the require
section of composer.json
:
{
"require": {
"archiebot/proxy": "1.x"
}
}
or run command:
composer require "archiebot/proxy"
Setup
- Add
Archiebot\Proxy\ArchiebotServiceProvider::class,
to the service provider list inapp/config/app.php
. - Add
'Archiebot' => Archiebot\Proxy\Facades\ArchiebotFacade::class,
to the list of aliases inapp/config/app.php
.
Configuration
In order to use the Api Proxy publish its configuration first
php artisan config:publish archiebot/proxy
Afterwards edit the file app/config/archiebot.php
to suit your needs.
Usage
The easiest way is usign proxy:
$resource = new \Archiebot\Proxy\ArchiebotResources(
'account', \App::make('archiebot.proxy')
);
dd($resource->me());
License
This package is released under the MIT License.