Registry / http-client / php-http-httplug

php-http-httplug

JSON →
library2.4.1phppackagistunverified

HTTPlug, the HTTP client abstraction for PHP

composer require php-http/httplug
INSTALL
IMPORT
SIG · PHP-HTTP-HTTPLUG
P
php-http-httplug
http-clientphpv2.4.1
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.

HttpClient
use Http\Client\HttpClient;

Sends an HTTP request using an HTTPlug-compatible client.

use Http\Client\HttpClient; use Http\Message\RequestFactory; $client = new SomeHttpClient(); // e.g., GuzzleHttp\Client $request = (new RequestFactory())->createRequest('GET', 'https://api.example.com'); $response = $client->sendRequest($request);
Debug
Known issues
breakingHTTPlug v2 requires PSR-18 (psr/http-client) compatibility.
fix
Ensure your HTTP client implements Psr\Http\Client\ClientInterface.
affects: >=2.0.0
Upgrade
Version history
2.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Resources
php-http-httplug — pip install php-http-httplug · libregistry