Registry / auth / adoy-oauth2

adoy-oauth2

JSON →
library1.3.1phppackagistunverified

Light PHP wrapper for the OAuth 2.0 protocol based on draft-ietf-oauth-v2-15.

composer require adoy/oauth2
INSTALL
IMPORT
SIG · ADOY-OAUTH2
A
adoy-oauth2
authphpv1.3.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.

Client
use OAuth2\Client;

Initialize an OAuth2 client and get the authorization URL.

use OAuth2\Client; $client = new Client('client_id', 'client_secret', 'https://example.com/redirect'); $authUrl = $client->getAuthenticationUrl('https://provider.com/auth', 'https://example.com/redirect'); echo $authUrl;
Debug
Known issues
gotchaThis library implements an older draft of OAuth 2.0, which may differ from the final RFC.
fix
Consider using a more modern OAuth2 client like league/oauth2-client.
affects: >=1.0.0
Upgrade
Version history
1.3.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
42
OpenAI (training)
1
Resources
adoy-oauth2 — pip install adoy-oauth2 · libregistry