PHPackages                             decrypted/twitch-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. decrypted/twitch-sdk

ActiveLibrary[API Development](/categories/api)

decrypted/twitch-sdk
====================

TwitchTV API SDK for PHP

2.1.4(6y ago)354.5k1MITPHPPHP &gt;=5.3.0

Since Jun 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/decrypted/Twitch-SDK)[ Packagist](https://packagist.org/packages/decrypted/twitch-sdk)[ Docs](https://github.com/decrypted/Twitch-SDK)[ RSS](/packages/decrypted-twitch-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (15)Used By (0)

TwitchTV SDK for PHP
====================

[](#twitchtv-sdk-for-php)

This is unofficial [TwitchTV SDK for PHP](https://github.com/decrypted/Twitch-SDK), a fork of  as it got UNMAINTAINED. This will aim to do at least basic patches, and it is running in production. #therebedragons #v5

Requirements
------------

[](#requirements)

TwitchTV SDK for PHP requires PHP 5.3.0 or later with cURL extension enabled.

Installation
------------

[](#installation)

The best way to install TwitchTV SDK is use [Composer](http://getcomposer.org/).

### Download the bundle using Composer

[](#download-the-bundle-using-composer)

```
$ composer require 'decrypted/twitch-sdk:2.1.*'
```

The downloaded package includes the `src` directory. This directory contains the source code of TwitchTV SDK for PHP. This is the only directory that you will need in order to deploy your application.

Getting started
---------------

[](#getting-started)

Basic functions starts with standard naming policy (user\*, channel\* etc.) - `userGet()` for example. Authenticated functions have auth\* prefixes, like `authUserGet()`.

### SDK initialization in your project

[](#sdk-initialization-in-your-project)

#### With autoloader (Frameworks etc.)

[](#with-autoloader-frameworks-etc)

```
use \jofner\SDK\TwitchTV\TwitchSDK;

$twitch = new TwitchSDK;
...
```

#### Without Autoloader

[](#without-autoloader)

```
require '/path/to/libs/jofner/SDK/TwitchTV/TwitchSDK.php';
require '/path/to/libs/jofner/SDK/TwitchTV/TwitchSDKException.php';

use \jofner\SDK\TwitchTV\TwitchSDK;
use \jofner\SDK\TwitchTV\TwitchSDKException;

$twitch = new TwitchSDK;
...
```

### Usage

[](#usage)

#### Basic usage (public functions only)

[](#basic-usage-public-functions-only)

```
$twitch = new TwitchSDK;
$channel = $twitch->channelGet('channelname');
...
```

#### Authenticated functions usage

[](#authenticated-functions-usage)

```
$twitch_config = array(
    'client_id' => 'your_twitch_app_client_id',
    'client_secret' => 'your_twitch_app_client_secret',
    'redirect_uri' => 'your_twitch_app_redirect_uri',
);

$twitch = new TwitchSDK($twitch_config);
$loginURL = $twitch->authLoginURL('user_read');
...
```

More examples you can find soon at Wiki pages.

### Error: curl SSL certificate problem: self signed certificate in certificate chain

[](#error-curl-ssl-certificate-problem-self-signed-certificate-in-certificate-chain)

If you getting this error, you have probably out of date CA root certificates. Be sure you have in your php.ini set path to certificate in curl.cainfo = "..."

You can get cacert.pem from this site

Licenses
--------

[](#licenses)

Refer to the LICENSE.md file for license information

Reference
---------

[](#reference)

[TwitchTV](http://www.twitch.tv/), [TwitchTV API](https://github.com/justintv/Twitch-API), [Composer](http://getcomposer.org/)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Recently: every ~65 days

Total

14

Last Release

2193d ago

Major Versions

1.1.4 → 2.0.52017-02-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a21fd49c3a38bb5e9b6270cfcafbb0ba5fe53de18678383b3fe9b4b51755f5f?d=identicon)[decrypted](/maintainers/decrypted)

---

Top Contributors

[![decrypted](https://avatars.githubusercontent.com/u/1056299?v=4)](https://github.com/decrypted "decrypted (11 commits)")[![jofner](https://avatars.githubusercontent.com/u/133850?v=4)](https://github.com/jofner "jofner (10 commits)")[![luka-camernik](https://avatars.githubusercontent.com/u/17780046?v=4)](https://github.com/luka-camernik "luka-camernik (4 commits)")[![nCrazed](https://avatars.githubusercontent.com/u/507466?v=4)](https://github.com/nCrazed "nCrazed (2 commits)")

---

Tags

apisdktwitch

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/decrypted-twitch-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/decrypted-twitch-sdk/health.svg)](https://phpackages.com/packages/decrypted-twitch-sdk)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
