archiebot/proxy

An ArchieBot proxy package


Keywords
api, oauth, ajax, proxy, laravel, archiebot
License
MIT

Documentation

PHP Api ArchieBot Proxy for Laravel 5.x

Latest Version Software License Build Status Code Quality Total Downloads

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

  1. Add Archiebot\Proxy\ArchiebotServiceProvider::class, to the service provider list in app/config/app.php.
  2. Add 'Archiebot' => Archiebot\Proxy\Facades\ArchiebotFacade::class, to the list of aliases in app/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.