2017 © Pedro Peláez
 

library api

PHP Library to access the Poniverse APi

image

poniverse/api

PHP Library to access the Poniverse APi

  • Wednesday, November 29, 2017
  • by Lavoaster
  • Repository
  • 17 Watchers
  • 3 Stars
  • 103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

poniverse-php

Build Status Scrutinizer Code Quality Code Coverage, (*1)

Installation

Require this package in composer.json and update, (*2)

"poniverse/api": "dev-master"

Normal Setup

Example Code:, (*3)

$config = [
    'client_id' => 'YOUR_CLIENT_ID'
    'client_secret' => 'YOUR_CLIENT_SECRET'
    'host_url' => 'https://api.poniverse.net'
];

$poniverse = new Poniverse(
    $config['client_id'],
    $config['client_secret'],
    new Client([
        'base_url' => [$config['host_url'], ['version' => 'v' . Poniverse::VERSION]]
    ])
);

$poniverse->setAccessToken('GRANTED_ACCESS_TOKEN');

$user = $poniverse->user->get();
// $user['display_name'];
// $user['email'];

Laravel 4 Setup

Open up app/config/app.php and add this line in your providers section, (*4)

'Poniverse\Api\ApiServiceProvider',

In the same file add this line to the aliases section, (*5)

'Poniverse' => 'Poniverse\Api\Facades\Poniverse',

Publish the configuration and then edit it, (*6)

php artisan config:publish poniverse/api

The Versions

29/11 2017

dev-rewrite

dev-rewrite

PHP Library to access the Poniverse APi

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Lavin

laravel api laravel4

11/06 2017

dev-master

9999999-dev

PHP Library to access the Poniverse APi

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adam Lavin

laravel api laravel4