PHP Libraries › symfony › http-client Symfony's HTTP client library offers efficient and flexible HTTP requests handling for PHP applications.
Package Description Symfony's HTTP client library provides a comprehensive solution for making HTTP requests, handling responses, and managing HTTP clients efficiently. It simplifies the process of interacting with web services and APIs, offering powerful features and robust performance. With Symfony's HTTP client, developers can easily integrate HTTP functionality into their PHP applications, ensuring seamless communication with external services.
Classes: Symfony\Component\HttpClient\AmpHttpClient Symfony\Component\HttpClient\Psr18Client Symfony\Component\HttpClient\Psr18NetworkException Symfony\Component\HttpClient\Psr18RequestException Symfony\Component\HttpClient\AsyncDecoratorTrait Symfony\Component\HttpClient\HttpOptions Symfony\Component\HttpClient\Messenger\PingWebhookMessageHandler Symfony\Component\HttpClient\Messenger\PingWebhookMessage Symfony\Component\HttpClient\DependencyInjection\HttpClientPass Symfony\Component\HttpClient\NoPrivateNetworkHttpClient Symfony\Component\HttpClient\MockHttpClient Symfony\Component\HttpClient\DataCollector\HttpClientDataCollector Symfony\Component\HttpClient\HttpClient Symfony\Component\HttpClient\EventSourceHttpClient Symfony\Component\HttpClient\ThrottlingHttpClient Symfony\Component\HttpClient\HttplugClient Symfony\Component\HttpClient\TraceableHttpClient Symfony\Component\HttpClient\Test\HarFileResponseFactory Symfony\Component\HttpClient\Chunk\ServerSentEvent Symfony\Component\HttpClient\Chunk\FirstChunk Symfony\Component\HttpClient\Chunk\DataChunk Symfony\Component\HttpClient\Chunk\ErrorChunk Symfony\Component\HttpClient\Chunk\LastChunk Symfony\Component\HttpClient\Chunk\InformationalChunk Symfony\Component\HttpClient\Retry\RetryStrategyInterface Symfony\Component\HttpClient\Retry\GenericRetryStrategy Symfony\Component\HttpClient\ScopingHttpClient Symfony\Component\HttpClient\CurlHttpClient Symfony\Component\HttpClient\UriTemplateHttpClient Symfony\Component\HttpClient\DecoratorTrait Symfony\Component\HttpClient\Exception\InvalidArgumentException Symfony\Component\HttpClient\Exception\TimeoutException Symfony\Component\HttpClient\Exception\ClientException Symfony\Component\HttpClient\Exception\RedirectionException Symfony\Component\HttpClient\Exception\EventSourceException Symfony\Component\HttpClient\Exception\JsonException Symfony\Component\HttpClient\Exception\HttpExceptionTrait Symfony\Component\HttpClient\Exception\TransportException Symfony\Component\HttpClient\Exception\ChunkCacheItemNotFoundException Symfony\Component\HttpClient\Exception\ServerException Symfony\Component\HttpClient\NativeHttpClient Symfony\Component\HttpClient\Internal\AmpResolver Symfony\Component\HttpClient\Internal\AmpClientState Symfony\Component\HttpClient\Internal\Canary Symfony\Component\HttpClient\Internal\HttplugWaitLoop Symfony\Component\HttpClient\Internal\AmpBody Symfony\Component\HttpClient\Internal\ClientState Symfony\Component\HttpClient\Internal\PushedResponse Symfony\Component\HttpClient\Internal\NativeClientState Symfony\Component\HttpClient\Internal\CurlClientState Symfony\Component\HttpClient\Internal\DnsCache Symfony\Component\HttpClient\Internal\AmpListener Symfony\Component\HttpClient\RetryableHttpClient Symfony\Component\HttpClient\Response\MockResponse Symfony\Component\HttpClient\Response\AsyncResponse Symfony\Component\HttpClient\Response\JsonMockResponse Symfony\Component\HttpClient\Response\TransportResponseTrait Symfony\Component\HttpClient\Response\StreamableInterface Symfony\Component\HttpClient\Response\TraceableResponse Symfony\Component\HttpClient\Response\CommonResponseTrait Symfony\Component\HttpClient\Response\AmpResponse Symfony\Component\HttpClient\Response\StreamWrapper Symfony\Component\HttpClient\Response\NativeResponse Symfony\Component\HttpClient\Response\CurlResponse Symfony\Component\HttpClient\Response\AsyncContext Symfony\Component\HttpClient\Response\HttplugPromise Symfony\Component\HttpClient\Response\ResponseStream Symfony\Component\HttpClient\HttpClientTrait Symfony\Component\HttpClient\CachingHttpClient Close Previous Versions Code Integration Example Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/http-client/8.0.3/loader.php';
require_once 'libs/symfony/http-foundation/8.0.4/loader.php';
require_once 'libs/symfony/http-kernel/8.0.4/loader.php';
use Symfony\Component\HttpClient\HttpClient;
$obj = new HttpClient();
echo '✅ Test OK: ' . get_class($obj);
?>Report a broken download or code We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion Ask questions, share tips, or report issues below.