PHPackages                             slownls/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. slownls/twitch\_api

ActiveLibrary[API Development](/categories/api)

slownls/twitch\_api
===================

A library for Twitch API in PHP

1.0.0(6y ago)08Apache-2.0PHPPHP &gt;=7.1.0

Since Mar 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SlownLS/twitch_api)[ Packagist](https://packagist.org/packages/slownls/twitch_api)[ RSS](/packages/slownls-twitch-api/feed)WikiDiscussions master Synced today

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

Twitch API
==========

[](#twitch-api)

A Simple library for Twitch API create in PHP.

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

[](#installation)

To install this library use composer

composer require "slownls/twitch\_api"

User functions
--------------

[](#user-functions)

```
User::IsLogged() // Whether the user is logged in.

User::Logout() // Used to log the user out.

User::Login() // Used to redirect the user to the twitch login page.

User::Connect(string $code) // Used to connect the user with the twitch token.

User::GetLocalInfo(string $key) // Used to retrieve user's information

User::GetByName(string $userName) // Used to retrieve a user's information with their name.

User::SetChannel(\SlownLS\Twitch\Channel $channel) // Used to set the reference channel

User::HasChannel() // Whether the reference channel is defined

User::IsFollower() // Whether the user is the reference channel.

User::IsSubscriber() // Whether the user subscribes to the reference channel.

User::IsModerator() // Whether the user is the moderator of the reference channel.

User::FollowChannel() // Use to follow the reference channel

User::UnFollowChannel() // Use to no longer follow the reference channel
```

Channel functions
-----------------

[](#channel-functions)

```
Channel::SetChannel(string $channelName) // Used to set the reference channel

Channel::HasChannel() // Whether the reference channel is defined

Channel::GetInfos() // Used to retrieve the channel information.

Channel::GetStream() // Used to retrieve the stream of the channel

Channel::GetName() // Used to retrieve the name of the channel

Channel::GetDisplayName() // Used to get the channel's poster name.
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2297d ago

### Community

Maintainers

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

---

Top Contributors

[![SlownLS](https://avatars.githubusercontent.com/u/22427817?v=4)](https://github.com/SlownLS "SlownLS (16 commits)")

---

Tags

apitwitchobject orientedslownls

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M42](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[phpfui/constantcontact

Object Oriented Wrapper for Constant Contact API V3 for PHP 8+

2123.7k1](/packages/phpfui-constantcontact)

PHPackages © 2026

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