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, so you have to install one as well. Nyholm PSR-7 is supported natively:

$ composer require nyholm/psr7

Alternatively you can install the discovery layer to be able to automatically find installed resources, like factories:

$ composer require php-http/discovery

Usage

use Symfony\Component\HttpClient\HttplugClient;

$symfonyClient = new HttplugClient();

Note

Check the official Symfony HttpClient documentation for more details.