PHPackages                             farzai/twitch - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. farzai/twitch

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

farzai/twitch
=============

Laravel Twitch

02[5 PRs](https://github.com/farzai/laravel-twitch/pulls)PHPCI passing

Since Aug 1Pushed 1mo agoCompare

[ Source](https://github.com/farzai/laravel-twitch)[ Packagist](https://packagist.org/packages/farzai/twitch)[ RSS](/packages/farzai-twitch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Laravel Twitch
==============

[](#laravel-twitch)

Still in development
--------------------

[](#still-in-development)

[![Latest Version on Packagist](https://camo.githubusercontent.com/094fd8e72bbc3132c7c19784a39a5280c04868303bcab17ee7d1970af9c0e20d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6661727a61692f7477697463682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/farzai/twitch)[![GitHub Tests Action Status](https://camo.githubusercontent.com/999a12ce25ed9d92cb1a699d4083c34e0a064152c54fcb9d385da1a08249aa3b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6661727a61692f6c61726176656c2d7477697463682f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/farzai/laravel-twitch/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1d28a0bc3d0deb28ce39b07fa6013c4a109d4df639517458b2ddb807796a9cc3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6661727a61692f6c61726176656c2d7477697463682f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/farzai/laravel-twitch/actions?query=workflow%3AFix+PHP+code+style+issues+branch%3Amain)[![codecov](https://camo.githubusercontent.com/a97f524d61210b58378a97871baebb84921de3a9bcb43094d1b636cc8a501992/68747470733a2f2f636f6465636f762e696f2f67682f6661727a61692f6c61726176656c2d7477697463682f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/farzai/laravel-twitch)[![Total Downloads](https://camo.githubusercontent.com/db78d6e3268ef49b814055e2a700bc3404657b2a3e651b968d00e0f32b96d514/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6661727a61692f7477697463682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/farzai/twitch)

Description
-----------

[](#description)

Laravel Twitch is a package that provides an easy way to interact with the Twitch API using Laravel. It simplifies the process of making requests to the Twitch API and handling the responses. The package includes features such as authentication, making API requests, and handling pagination.

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

[](#installation)

To install the package, you can use Composer:

```
composer require farzai/twitch
```

The package requires PHP 8.1 or higher and the following dependencies:

- spatie/laravel-package-tools: ^1.14.0
- illuminate/contracts: ^10.0

Usage
-----

[](#usage)

Here are some examples of how to use the package:

### Retrieving an Access Token

[](#retrieving-an-access-token)

```
use Farzai\Twitch\Authorizer;

$accessToken = Authorizer::retrieveAccessToken();
```

### Making API Requests

[](#making-api-requests)

```
use Farzai\Twitch\Builder;
use Farzai\Twitch\Models\Game;

$builder = new Builder(Game::class);
$games = $builder->search('Fortnite')->get();
```

Configuration
-------------

[](#configuration)

To configure the package, you need to set up the necessary credentials in your `.env` file:

```
TWITCH_CLIENT_ID=your-client-id
TWITCH_CLIENT_SECRET=your-client-secret
```

You can also publish the configuration file to customize the package settings:

```
php artisan vendor:publish --tag=twitch-config
```

Contributing
------------

[](#contributing)

If you would like to contribute to the package, please follow these guidelines:

1. Fork the repository.
2. Create a new branch for your feature or bugfix.
3. Write tests for your changes.
4. Run the tests to ensure they pass.
5. Submit a pull request with a clear description of your changes.

If you find any issues or have any questions, feel free to open an issue on GitHub.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance60

Regular maintenance activity

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4928451?v=4)[parsilver](/maintainers/parsilver)[@parsilver](https://github.com/parsilver)

---

Top Contributors

[![parsilver](https://avatars.githubusercontent.com/u/4928451?v=4)](https://github.com/parsilver "parsilver (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (15 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

### Embed Badge

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

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

###  Alternatives

[swissup/module-slick-carousel

the last carousel you'll ever need for magento2

1020.8k1](/packages/swissup-module-slick-carousel)

PHPackages © 2026

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