Registry /
http-client / symfony-http-client-contracts
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.
HttpClientInterface
✓ use Symfony\Contracts\HttpClient\HttpClientInterface;
Use the HttpClientInterface to make a GET request and retrieve content
use Symfony\Contracts\HttpClient\HttpClientInterface;
// Example usage with a concrete implementation
$client = \Symfony\Component\HttpClient\HttpClient::create();
$response = $client->request('GET', 'https://api.example.com');
$content = $response->getContent();
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.