Registry / http-client / commerceguys-guzzle-oauth2-plugin

commerceguys-guzzle-oauth2-plugin

JSON →
library2.1.1phppackagistunverified

An OAuth2 plugin (subscriber) for Guzzle.

composer require commerceguys/guzzle-oauth2-plugin
INSTALL
IMPORT
SIG · COMMERCEGUYS-GUZZL
C
commerceguys-guzzle-oauth2-plugin
http-clientphpv2.1.1
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.

OAuth2Subscriber
use CommerceGuys\Guzzle\OAuth2\OAuth2Subscriber;

Attach OAuth2 authentication to Guzzle requests

use CommerceGuys\Guzzle\OAuth2\OAuth2Subscriber; use GuzzleHttp\Client; $client = new Client(); $subscriber = new OAuth2Subscriber($client, ['client_id' => '...', 'client_secret' => '...']); $client->getEmitter()->attach($subscriber);
Debug
Known issues
breakingThis package uses Guzzle 5.x (subscriber pattern) which is outdated.
fix
Upgrade to Guzzle 6+ and use middleware instead.
affects: >=2.0.0 <3.0.0
Upgrade
Version history
2.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
32
OpenAI (training)
2
Resources
commerceguys-guzzle-oauth2-plugin — pip install commerceguys-guzzle-oauth2-plugin · libregistry