, (*1)
Guzzle6 universal module
This package integrates Guzzle6 in any container-interop compatible framework/container., (*2)
Installation
composer require thecodingmachine/guzzle-universal-service-provider
Once installed, you need to register the TheCodingMachine\Guzzle\XXXServiceProvider
into your container., (*3)
If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers., (*4)
Introduction
This is a service provider for Guzzle 6., (*5)
In addition to creating services for Guzzle 6, this service provider will also create a Guzzle 6 adapter for HTTPlug., (*6)
Expected values / services
This service provider expects the following configuration / services to be available:, (*7)
Name |
Compulsory |
Description |
guzzleConfig |
no |
You can change the default provided Guzzle config by override this entry |
Provided services
This service provider provides the following services:, (*8)
Service name |
Description |
GuzzleHttp\Client |
The Guzzle client |
guzzleConfig |
By default, the Guzzle config defaults to: [ 'http_errors' => true ]
|
Http\Adapter\Guzzle6\Client |
An HTTPlug adapter for the Guzzle client |
Http\Client\HttpClient |
An alias to the Guzzle6 adapter |
Http\Client\HttpAsyncClient |
An alias to the Guzzle6 adapter |
Extended services
None, (*9)
Project template courtesy of thecodingmachine/service-provider-template, (*10)