Registry / http-client / php-http-discovery

php-http-discovery

JSON →
library1.20.0phppackagistunverified

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

composer require php-http/discovery
INSTALL
IMPORT
SIG · PHP-HTTP-DISCOVERY
P
php-http-discovery
http-clientphpv1.20.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.

Psr18ClientDiscovery
use Http\Discovery\Psr18ClientDiscovery;

Auto-discover a PSR-18 HTTP client

use Http\Discovery\Psr18ClientDiscovery; $client = Psr18ClientDiscovery::find();
Debug
Known issues
gotchaMay throw DiscoveryFailedException if no compatible implementation is installed
fix
Install at least one PSR-18 client (e.g., guzzlehttp/guzzle) or use a fallback strategy
affects: >=1.0.0
Upgrade
Version history
1.20.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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