2017 © Pedro Peláez
 

library kamui

A Wrapper for the Twitch-API in PHP

image

prefixaut/kamui

A Wrapper for the Twitch-API in PHP

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Packagist GitHub release Travis SensioLabs Insight License, (*1)

Kamui

A PHP-Wrapper for the Twitch API (Kraken), (*2)

Kamui is a complete Wrapper for the Twitch API which allows you to easily use it. Currently it's supporting the most up to date version of the API (v5)., (*3)

Install

The best way to install Kamui is using Composer:, (*4)

composer require prefixaut/kamui 

Usage

Using the API is really easy as it orientates a lot on the structure of the Original API. Example usage:, (*5)

use Kamui\API;
$api = new API($my_twitch_token);
$api->users->follows('prefixaut'); // Will give you a List of all Channels I follow

Every function simply returns the original content of the Resource as Objects. If any error occurs, it'll simply return false to prevent accidental breaks. You can also use all Objects however you like them within the API like so:, (*6)

$cool_dude = $api->users->get('prefixaut');
$api->users->follows($cool_dude);
$api->users->follows($cool_dude->_id);

The follows-Function would return the exact same thing since it's still the same user. This allows you to easily drop in whatever you want and focus on more important stuff., (*7)

Testing

Kamui is using PHPUnit-Tests. The best way to run them is to install it along with Composer. When it's setup, run phpunit on the root of the Project., (*8)

Twitch-Emotes

This Project is using the API from Twitch-Emotes to allow you an easier usage of them. Example use of them is:, (*9)

$api->feed->reactToPost($user, $post, 'Kappa');

License

This Project is licensed under the MIT-License. Read the LICENSE-File inside this Project for more information., (*10)

Sidenote: The Projects name comes from 'Akkorokamui'. Google it up, too lazy to explain stuff, (*11)

The Versions

14/08 2017

dev-master

9999999-dev http://prefixaut.net

A Wrapper for the Twitch-API in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest twitch kraken kamui prefixaut