Registry / http-client / php-http-socket-client

php-http-socket-client

JSON →
library2.4.0phppackagistunverified

Socket client for PHP-HTTP, providing a PSR-18 HTTP client implementation.

composer require php-http/socket-client
INSTALL
IMPORT
SIG · PHP-HTTP-SOCKET-CL
P
php-http-socket-client
http-clientphpv2.4.0
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 Http\Client\Socket\Client;

Send an HTTP request using the socket client.

use Http\Client\Socket\Client; $client = new Client(); $response = $client->sendRequest(new \Psr\Http\Message\Request('GET', 'http://example.com')); echo $response->getBody();
Debug
Known issues
breakingRequires PHP 7.1 or higher.
fix
Upgrade PHP to version 7.1+.
affects: <2.0.0
Upgrade
Version history
2.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
php-http-socket-client — pip install php-http-socket-client · libregistry