mika56/twitch-sdk-bundle

Simple wrapper around ritero/twitch-sdk

Maintainers

👁 Mika56

Package info

github.com/Mika56/TwitchSDKBundle

Type:symfony-bundle

pkg:composer/mika56/twitch-sdk-bundle

Statistics

Installs: 47

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2014-05-27 09:38 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ce2374a2692ee7c72bcc3506b325b6ef22348139

  • Mikael Peigney <mika56.woop@gamersflag.com>

twitchtwitch apitwitch bundle

This package is auto-updated.

Last update: 2026-06-28 08:47:44 UTC


README

This bundle provides a simple integration of the "TwitchSDK" from "Josef Ohnheiser" into Symfony2.

<?php
$twitch_api = $this->get('twitch');

##Installation

Step 1: Composer require

$ php composer.phar require "mika56/twitch-sdk-bundle":"dev-master"

Step 2: Enable the bundle in the kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
 $bundles = array(
 // ...
 new Mika56\TwitchSDKBundle\Mika56TwitchSDKBundle(),
 // ...
 );
}

Step 3: Add parameters

TwitchSDKBundle requires you to add some parameters in your parameters.yml file. You can either add "no configuration" (API calls will be anonymous) or specify your client_id, client_secret and redirect_uri:

// app/config/parameters.yml
twitch_settings: ~

or

// app/config/parameters.yml
twitch_settings:
 client_id: "your_twitch_app_client_id"
 client_secret: "your_twitch_app_client_secret"
 redirect_uri: "your_twitch_app_redirect_uri"

That's it!