{"id":95446,"library":"adoy-oauth2","title":"OAuth2","description":"Light PHP wrapper for the OAuth 2.0 protocol based on draft-ietf-oauth-v2-15.","status":"active","version":"1.3.1","language":"php","source_language":null,"source_url":"https://github.com/adoy/PHP-OAuth2","tags":["oauth2","authentication","authorization","http"],"install":[{"cmd":"composer require adoy/oauth2","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Client","correct":"use OAuth2\\Client;"}],"quickstart":{"code":"use OAuth2\\Client;\n\n$client = new Client('client_id', 'client_secret', 'https://example.com/redirect');\n$authUrl = $client->getAuthenticationUrl('https://provider.com/auth', 'https://example.com/redirect');\necho $authUrl;","lang":"php","description":"Initialize an OAuth2 client and get the authorization URL."},"warnings":[{"fix":"Consider using a more modern OAuth2 client like league/oauth2-client.","message":"This library implements an older draft of OAuth 2.0, which may differ from the final RFC.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'15':17 '2.0':8 'authent':19 'author':20 'base':10 'draft':13 'draft-ietf-oauth-v2':12 'http':21 'ietf':14 'light':2 'oauth':7,15 'oauth2':1,18 'php':3 'protocol':9 'v2':16 'wrapper':4","created_at":"2026-06-19T10:31:44.538967+00:00","updated_at":"2026-06-19T10:31:44.538967+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/adoy/PHP-OAuth2","github":"https://github.com/adoy/PHP-OAuth2","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","http-client"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}