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 1mo ago

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 27% 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

2251d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3955af656444dff06f1f25b924a214904caa98fbc843352169260d9e4b8a5928?d=identicon)[SlownLS](/maintainers/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

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[nicklaw5/twitch-api-php

A Twitch API client for PHP.

116233.0k2](/packages/nicklaw5-twitch-api-php)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[phpfui/constantcontact

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

2015.7k1](/packages/phpfui-constantcontact)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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