2017-25 © Pedro Peláez
 

library livecoding-api

PHP wrapper for LiveCoding.TV API

image

ozankurt/livecoding-api

PHP wrapper for LiveCoding.TV API

  • Thursday, January 12, 2017
  • by OzanKurt
  • Repository
  • 3 Watchers
  • 4 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

LiveCoding-API

Latest Stable Version Latest Unstable Version License Total Downloads Travis-CI Code Climate, (*1)

This package is a wrapper of LiveCodingTV API for PHP., (*2)

Usage

Pure PHP
use Kurt\LiveCoding\Client;
use Kurt\LiveCoding\LiveCoding;

$storagePath = __DIR__.'/storage/livecoding';

$liveCodingClient = new Client([
    'id' => 'CLIENT_ID', // required
    'secret' => 'CLIENT_SECRET', // required
    'redirectUrl' => 'http://localhost:8000/', // required

    /** 
     * All classes under Kurt\LiveCoding\Scopes namespace are accepted as a valid scope.
     * By default ReadScope will be instantiated.
     */
    'scope' => new Kurt\LiveCoding\Scopes\ReadScope, // optional

    /** 
     * All classes under Kurt\LiveCoding\Storages namespace are accepted as a valid scope.
     * In order to use FileStorage you have to specify a storage path.
     * By default SessionStorage will be instantiated.
     */
    'storage' => new Kurt\LiveCoding\Storages\FileStorage($storagePath), // optional
]);

$liveCoding = new LiveCoding($liveCodingClient);

if (!$liveCoding->isAuthorized()) {
    echo '<a href='.$liveCoding->getAuthLink().'>Connect My LiveCodingTV Account</a>';
} else {
    $results = $liveCoding->users('ozankurt');
}

Contribution Guidelines

Any kind of code improvement or additions are appreciated., (*3)

License

The LiveCoding-API is open-sourced software licensed under the MIT license., (*4)

The Versions

12/01 2017

dev-master

9999999-dev

PHP wrapper for LiveCoding.TV API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api oauth livecoding

12/01 2017

0.2

0.2.0.0

PHP wrapper for LiveCoding.TV API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api oauth livecoding

03/10 2016

0.1

0.1.0.0

PHP wrapper for LiveCoding.TV API

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

api oauth livecoding