Registry / http-client / graham-campbell-guzzle-factory

graham-campbell-guzzle-factory

JSON →
library8.0.0phppackagistunverified

Provides A Simple Guzzle Factory With Good Defaults

composer require graham-campbell/guzzle-factory
INSTALL
IMPORT
SIG · GRAHAM-CAMPBELL-GU
G
graham-campbell-guzzle-factory
http-clientphpv8.0.0
harness data pending
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.

GuzzleFactory
use GrahamCampbell\GuzzleFactory\GuzzleFactory;

Create a Guzzle HTTP client with sensible defaults

use GrahamCampbell\GuzzleFactory\GuzzleFactory; $client = GuzzleFactory::make(); $response = $client->get('https://api.github.com'); echo $response->getStatusCode();
Debug
Known issues
breakingRequires Guzzle 7.x; not compatible with Guzzle 6
fix
Ensure you have guzzlehttp/guzzle ^7.0 installed
affects: >=8.0.0
Upgrade
Version history
8.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
graham-campbell-guzzle-factory — pip install graham-campbell-guzzle-factory · libregistry