Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 928 Bytes

File metadata and controls

38 lines (23 loc) · 928 Bytes

Symfony Client

An HTTPlug implementation from the Symfony HttpClient.

Installation

To install the Symfony client, run:

$ composer require symfony/http-client

This client does not come with a PSR-7 implementation out of the box. If you do not require one, discovery <../discovery> will install Nyholm PSR-7. If you do not allow the composer plugin of the php-http/discovery component, you need to install a PSR-7 implementation manually:

$ composer require nyholm/psr7

Usage

use Symfony\Component\HttpClient\HttplugClient;

$symfonyClient = new HttplugClient();

Note

Check the official Symfony HttpClient documentation for more details.