Registry / http-client / workerman-http-client

workerman-http-client

JSON →
library3.0.8phppackagistunverified

An asynchronous HTTP client for the Workerman PHP framework.

composer require workerman/http-client
INSTALL
IMPORT
SIG · WORKERMAN-HTTP-CLI
W
workerman-http-client
http-clientphpv3.0.8
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 Workerman\Http\Client;

Create an HTTP client and send a GET request asynchronously.

use Workerman\Http\Client; $client = new Client(); $client->get('https://example.com', function ($response) { echo $response->getBody(); }); \Workerman\Worker::runAll();
Debug
Known issues
gotchaRequires Workerman environment (event loop) to function; not suitable for traditional synchronous PHP scripts.
fix
Run your script using Workerman's Worker::runAll() or integrate with an existing Workerman application.
affects: >=3.0.0
Upgrade
Version history
3.0.8latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
Resources
workerman-http-client — pip install workerman-http-client · libregistry