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

AbandonedArchivedLibrary[API Development](/categories/api)

obnoxiousfrog/twitch-api
========================

v1.0.0(10y ago)71061[1 issues](https://github.com/obnoxiousfrog/twitch-api/issues)MITPHP

Since Jun 1Pushed 8y ago3 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Twitch Api
==========

[](#twitch-api)

This is a PHP library to simplify working with the Twitch API.

> **PLEASE READ**
>
> It has come to my attention that this package may no longer be compatible with the recent Twitch API changes. Unfortunately, I do not have the time required to look into it at the moment. Hopefully, I will some day in the not too distant future, and maybe I'll even go ahead and re-write it completely. I will not offer support on any major feature requests or issues until then.
>
> Please keep this in mind if you decide to use and/or rely on this package.
>
> Thank you.

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

[](#installation)

Install by running the following [Composer](https://getcomposer.org/) command:

```
composer require obnoxiousfrog/twitch-api
```

Example
-------

[](#example)

Below is an example for authenticating the user, checking if the user is following and subscribed to the user `obnoxiousfrog`, and if they are, they are greeted with a message. If not, an exception is thrown for logging, and/or redirecting the user to another page with an error message.

```
