PHPackages                             padhie/twitch-api-bundle - 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. padhie/twitch-api-bundle

ActiveLibrary[API Development](/categories/api)

padhie/twitch-api-bundle
========================

Simple Client for Twitch-Api https://dev.twitch.tv/docs/api/reference

2.0.4(2y ago)1468[2 issues](https://github.com/padhie/TwitchApiBundle/issues)[2 PRs](https://github.com/padhie/TwitchApiBundle/pulls)MITPHPPHP ^8.2

Since Jun 25Pushed 2y agoCompare

[ Source](https://github.com/padhie/TwitchApiBundle)[ Packagist](https://packagist.org/packages/padhie/twitch-api-bundle)[ RSS](/packages/padhie-twitch-api-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (9)Versions (33)Used By (0)

TwitchApi
=========

[](#twitchapi)

Simple Client for Twitch-Api

How to use
----------

[](#how-to-use)

### Create Client

[](#create-client)

```
// see https://dev.twitch.tv/docs/authentication/getting-tokens-oauth
$clientId = 'CLIENT_ID';
$authorization = 'AUTHORIZATION';

$client = new \Padhie\TwitchApiBundle\TwitchClient(
    new \GuzzleHttp\Client(),
    new \Padhie\TwitchApiBundle\Request\RequestGenerator($clientId, $authorization),
    new \Padhie\TwitchApiBundle\Response\ResponseGenerator(),
);
```

### send Single Request

[](#send-single-request)

```
$request = new \Padhie\TwitchApiBundle\Request\Channels\GetChannelInformationRequest($broadcasterId);

$response = $client->send($request);
assert($response instanceof \Padhie\TwitchApiBundle\Response\Channels\GetChannelInformationResponse);

$title = $response->getChannels()[0]->getTitle();
```

### send Pagination Request

[](#send-pagination-request)

```
$request = new \Padhie\TwitchApiBundle\Request\Users\GetUsersFollowsRequest($broadcasterId);

$response = $client->sendWithPagination($request);
assert($response instanceof \Padhie\TwitchApiBundle\Request\Users\GetUsersFollowsResponse);

$users = $response->getUsers();
```

Todo
----

[](#todo)

- implement Namespaces
    - Ads
    - Analytics
    - Bits
    - ChannelPoints
    - Channels
    - Chat
    - Clips
    - Entitlements
    - EventSub
    - Extensions
    - Games
    - Goals
    - HypeTrain
    - Moderation
    - Music
    - Polls
    - Predictions
    - Schedule
    - Search
    - Streams
    - Subscriptions
    - Tags
    - Teams
    - Users
    - Videos
- tests with Response Examples (from Documentation)
- implement Parallel Request
- implement Async Request

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~75 days

Recently: every ~150 days

Total

27

Last Release

908d ago

Major Versions

1.2.4 → 2.0.0-BETA12022-03-19

PHP version history (5 changes)1.0.0PHP ^7.1

1.1.14PHP ^7.1 || ^8.0

1.1.15PHP ^7.1 || ^8

1.2.0PHP ^7.4 || ^8

2.0.4PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4af9e007b8910785e18fbe7601cb06029302527d42089ed294ab71f8cb2ea6d?d=identicon)[padhie](/maintainers/padhie)

---

Top Contributors

[![padhie](https://avatars.githubusercontent.com/u/2571550?v=4)](https://github.com/padhie "padhie (40 commits)")

---

Tags

apitwitchtwitch.tvtwitch-tvtwitch-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/padhie-twitch-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/padhie-twitch-api-bundle/health.svg)](https://phpackages.com/packages/padhie-twitch-api-bundle)
```

###  Alternatives

[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[nicklaw5/twitch-api-php

A Twitch API client for PHP.

116233.0k2](/packages/nicklaw5-twitch-api-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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