2017 © Pedro Peláez
 

library laravel-onesdk

Laravel service provide for onesdk app php SDK

image

kly/laravel-onesdk

Laravel service provide for onesdk app php SDK

  • Monday, July 30, 2018
  • by kly
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

laravel-onesdk

One APP SDK to laravel binding service provider, (*1)

Prerequisite

  • Laravel >= 5.5

Installation

If you are using composer you could get it with composer require kly/laravel-onesdk and you are all set. Load up the autoloader and Call the classes or factory you need., (*2)

Register the Service Provider

Add the Service Provider to your application's config/app.php file. Must be added to the providers array., (*3)

'providers' => [
    One\Provider\OneSdkServiceProvider::class
]

Publish the Package configuration

This will publish the configuration file to your app's config directory. The location will be config/one.php. Specify your API settings there., (*4)

<?php
return [
    'client-id' => 0,
    'client-secret' => 'some-secret-string-token',
    'access_token' => ''
       ];

php artisan vendor:publish

Usage

use Config;
use One\FactoryUri;
use One\Publisher;

new Publisher( Config::get('one.client_id'), Config::get('one.client_secret') );
new FactoryUri('https://username:password@www.example.com:85/kerap/254?page=1#idkomentar');


The Versions

30/07 2018

dev-master

9999999-dev

Laravel service provide for onesdk app php SDK

  Sources   Download

MIT

The Requires

 

The Development Requires

30/07 2018
27/07 2018