PHPackages                             vertisan/oauth2-twitch-helix - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. vertisan/oauth2-twitch-helix

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

vertisan/oauth2-twitch-helix
============================

Twitch (new version Helix) OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2.0.0(3y ago)1181.4k↑81.3%62MITPHPPHP &gt;=7.1CI failing

Since Jun 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vertisan/oauth2-twitch-helix)[ Packagist](https://packagist.org/packages/vertisan/oauth2-twitch-helix)[ RSS](/packages/vertisan-oauth2-twitch-helix/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (5)Versions (7)Used By (2)

Twitch Helix Provider for OAuth 2.0 Client
==========================================

[](#twitch-helix-provider-for-oauth-20-client)

[![Build Status](https://camo.githubusercontent.com/b975386e3419f76d547111e75cdff3584b36e6afb8aa33ac15f5c625d31967ca/68747470733a2f2f7472617669732d63692e636f6d2f766572746973616e2f6f61757468322d7477697463682d68656c69782e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/vertisan/oauth2-twitch-helix)[![Latest Stable Version](https://camo.githubusercontent.com/34f90a33442bbe04dce77b00cd695cbdb6d27493ceb3c59a6e587e7eb74025e9/68747470733a2f2f706f7365722e707567782e6f72672f766572746973616e2f6f61757468322d7477697463682d68656c69782f76)](//packagist.org/packages/vertisan/oauth2-twitch-helix)[![License](https://camo.githubusercontent.com/d8c5e4f46919e411ac70ab760f4f18751712384e877f30542a1523a82e8b96e0/68747470733a2f2f706f7365722e707567782e6f72672f766572746973616e2f6f61757468322d7477697463682d68656c69782f6c6963656e7365)](https://packagist.org/packages/vertisan/oauth2-twitch-helix)

This package provides Twitch (new version Helix) OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).

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

[](#installation)

To install, use Composer:

```
composer require vertisan/oauth2-twitch-helix

```

Usage
-----

[](#usage)

Usage is the same as The League's OAuth client, using `Vertisan\OAuth2\Client\Provider\TwitchHelix` as the provider.

```
$provider = new \Vertisan\OAuth2\Client\Provider\TwitchHelix([
    'clientId' => "YOUR_CLIENT_ID",
    'clientSecret' => "YOUR_CLIENT_SECRET",
    'redirectUri' => "http://your-redirect-uri-passed-in-twitch-dashboard",
]);
```

You can also optionally add a `scopes` key to the array passed to the constructor. The available scopes are documented on the [New Twitch API Reference](https://dev.twitch.tv/docs/api/reference/).

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% 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 ~295 days

Recently: every ~366 days

Total

6

Last Release

1111d ago

Major Versions

1.1.2 → 2.0.02023-06-19

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

2.0.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![vertisan](https://avatars.githubusercontent.com/u/7668637?v=4)](https://github.com/vertisan "vertisan (13 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (1 commits)")[![ComFoxx](https://avatars.githubusercontent.com/u/17570186?v=4)](https://github.com/ComFoxx "ComFoxx (1 commits)")[![MrPropre](https://avatars.githubusercontent.com/u/36234981?v=4)](https://github.com/MrPropre "MrPropre (1 commits)")[![ph1823](https://avatars.githubusercontent.com/u/8150089?v=4)](https://github.com/ph1823 "ph1823 (1 commits)")

---

Tags

clientpackageleagueoauthtwitchhelix

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vertisan-oauth2-twitch-helix/health.svg)

```
[![Health](https://phpackages.com/badges/vertisan-oauth2-twitch-helix/health.svg)](https://phpackages.com/packages/vertisan-oauth2-twitch-helix)
```

###  Alternatives

[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

25310.7M83](/packages/thenetworg-oauth2-azure)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

42223.4M176](/packages/league-oauth2-google)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2306.4M45](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1152.8M12](/packages/patrickbussmann-oauth2-apple)[omines/oauth2-gitlab

GitLab OAuth 2.0 Client Provider for The PHP League OAuth2-Client

36779.2k16](/packages/omines-oauth2-gitlab)

PHPackages © 2026

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