Registry / http-client / php-http-plugins

php-http-plugins

JSON →
library1.2.0phppackagistunverified

Plugins for HTTPlug, providing middleware for HTTP clients.

composer require php-http/plugins
INSTALL
IMPORT
SIG · PHP-HTTP-PLUGINS
P
php-http-plugins
http-clientphpv1.2.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.

PluginClient
use Http\Client\Plugin\PluginClient;

Create a plugin client with a content length plugin.

use Http\Client\Plugin\PluginClient; use Http\Client\Plugin\Plugin\ContentLengthPlugin; use Http\Message\MessageFactory\GuzzleMessageFactory; $pluginClient = new PluginClient( new GuzzleHttp\Client(), [new ContentLengthPlugin()] ); $response = $pluginClient->sendRequest(new GuzzleHttp\Psr7\Request('GET', 'https://example.com'));
Debug
Known issues
breakingRequires an HTTP client adapter (e.g., Guzzle 6+).
fix
Install php-http/guzzle6-adapter or similar.
affects: >=1.0.0
Upgrade
Version history
1.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
php-http-plugins — pip install php-http-plugins · libregistry