Download the PHP package twitchphp/http without Composer
On this page you can find all versions of the php package twitchphp/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package http
TwitchPHP-Http
Non-blocking HTTP client and OAuth2 helper for the Twitch Helix API,
built on ReactPHP. It is the transport layer used by
TwitchPHP — the same split as
discord-php/http under DiscordPHP — and is usable on its own.
- Every call gets the
Authorization: BearerandClient-Idheaders Twitch requires. - A bounded concurrency queue, automatic
429handling (honouringRatelimit-Reset), and transient5xxretry with backoff. - Typed exceptions (
InvalidTokenException,NoPermissionsException,RateLimitException, …). Twitch\Http\OAuthcovers the client-credentials, authorization-code, refresh, and device-code flows, plusvalidate/revoke.
Install
Requires PHP 8.1+.
Usage
Http resolves with the decoded JSON body untouched — Twitch's
{ "data": [...], "pagination": { "cursor": "..." } } envelope is passed
straight through, and a 204 resolves with null. Higher-level unwrapping,
Parts, repositories and events live in TwitchPHP.
License
MIT — see LICENSE.
All versions of http with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
react/event-loop Version ^1.5
react/http Version ^1.11
react/promise Version ^3.2 || ^2.11
react/socket Version ^1.16
psr/http-message Version ^1.1 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
react/event-loop Version ^1.5
react/http Version ^1.11
react/promise Version ^3.2 || ^2.11
react/socket Version ^1.16
The package twitchphp/http contains the following files
Loading the files please wait ...