PHPackages                             imorate/twitchfa-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. [HTTP &amp; Networking](/categories/http)
4. /
5. imorate/twitchfa-api

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

imorate/twitchfa-api
====================

PHP REST API client for Twitchfa.com

v1.0(5y ago)56MITPHPPHP ^7.2

Since Mar 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Imorate/Twitchfa-api)[ Packagist](https://packagist.org/packages/imorate/twitchfa-api)[ Docs](https://github.com/imorate/twitchfa-api)[ RSS](/packages/imorate-twitchfa-api/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Twitchfa-api
============

[](#twitchfa-api)

[![Build Status](https://camo.githubusercontent.com/b76ec3869d283206b59905b18568d0df037de504434c1b574a8085b1741593af/68747470733a2f2f7472617669732d63692e636f6d2f496d6f726174652f54776974636866612d6170692e7376673f6272616e63683d6d61696e)](https://travis-ci.com/Imorate/Twitchfa-api)[![GitHub license](https://camo.githubusercontent.com/7953dc583c257c957034e7ebd7b6c69bcc55bbdbe2f7d8c5e635d6a4db1d6939/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f496d6f726174652f54776974636866612d617069)](https://github.com/Imorate/Twitchfa-api/blob/main/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/1f8949a8eb9475e737edffdc033604ef0e0905d2fcfadc070aa2d690d5b1deec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f496d6f726174652f54776974636866612d617069)](https://github.com/Imorate/Twitchfa-api/issues)

Twitchfa-api client written with PHP for [Twitchfa](https://Twitchfa.com) based on [Coingecko-Api](https://github.com/codenix-sv/coingecko-api) structure

For additional information about API visit [Twitchfa v2 documentation](https://api.twitchfa.com/v2/docs)

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

[](#requirements)

- PHP &gt;= 7.52
- ext-json
- guzzlehttp/guzzle

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require imorate/twitchfa-api
```

or add

```
"imorate/twitchfa-api": "^1.0"
```

Basic usage
-----------

[](#basic-usage)

### Example

[](#example)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->searchStreamers('mechiller');
```

You can get last response (`ResponseInterface::class`) uses `getLastResponse` method:

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->searchStreamers('fk_orca');
$response = $client->getLastResponse();
$headers = $response->getHeaders();
```

Available methods
-----------------

[](#available-methods)

### Twitch

[](#twitch)

[getBanners](https://api.twitchfa.com/v2/docs/#/default/TwitchController_getBanners)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->getBanners();
```

[getNotifications](https://api.twitchfa.com/v2/docs/#/default/TwitchController_getNotifications)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->getNotifications();
```

[searchStreamers](https://api.twitchfa.com/v2/docs/#/default/TwitchController_searchStreamers)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->searchStreamers('fk_orca');
```

[getFollowing](https://api.twitchfa.com/v2/docs/#/default/TwitchController_getFollowing)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$accessToken = 'eyJhbGciOiJSUzI...';
$result = $client->twitch()->getFollowing($accessToken);
```

[getSelf](https://api.twitchfa.com/v2/docs/#/default/TwitchController_getSelf)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$accessToken = 'eyJhbGciOiJSUzI...';
$result = $client->twitch()->getSelf($accessToken);
```

[getStreamers](https://api.twitchfa.com/v2/docs/#/default/TwitchController_getStreamers)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->getStreamers(1,10);
```

[addStreamer](https://api.twitchfa.com/v2/docs/#/default/TwitchController_addStreamer)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->addStreamer('some_random_username');
```

[getTwitchStats](https://api.twitchfa.com/v2/docs/#/default/TwitchController_getTwitchStats)

```
use Twitchfa\TwitchfaClient;

$client = new TwitchfaClient();
$result = $client->twitch()->getTwitchStats();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1881d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5383304?v=4)[Amir Mohammad Hl](/maintainers/Imorate)[@Imorate](https://github.com/Imorate)

---

Top Contributors

[![Imorate](https://avatars.githubusercontent.com/u/5383304?v=4)](https://github.com/Imorate "Imorate (11 commits)")

---

Tags

phpapiclientresttwitchfa.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imorate-twitchfa-api/health.svg)

```
[![Health](https://phpackages.com/badges/imorate-twitchfa-api/health.svg)](https://phpackages.com/packages/imorate-twitchfa-api)
```

PHPackages © 2026

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