Registry / http-client / react-http-client

react-http-client

JSON →
library0.5.11phppackagistunverified

Event-driven, streaming HTTP client for ReactPHP

composer require react/http-client
INSTALL
IMPORT
SIG · REACT-HTTP-CLIENT
R
react-http-client
http-clientphpv0.5.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use React\HttpClient\Client;

Make an HTTP GET request using ReactPHP's event-driven client.

use React\HttpClient\Client; use React\EventLoop\Factory; $loop = Factory::create(); $client = new Client($loop); $request = $client->request('GET', 'https://example.com'); $request->on('response', function ($response) { // handle response }); $request->end(); $loop->run();
Debug
Known issues
breakingVersion 0.5.x is outdated; consider using react/http (v1.0+) instead
fix
Migrate to react/http package for newer API and support.
affects: >=0.5.0
Upgrade
Version history
0.5.11latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
Amazon
1
OpenAI (training)
1
Resources
react-http-client — pip install react-http-client · libregistry