league/oauth2-github
GitHub OAuth 2.0 provider for the League OAuth2 client. Easily add GitHub login and API authorization to PHP applications with a simple, standards-based integration built on league/oauth2-client.
league/oauth2-github remains a narrow GitHub OAuth 2.0 provider adapter for league/oauth2-client, not a Laravel-native package. It fits only when the application already uses the League OAuth2 client stack or needs GitHub.com OAuth in a custom PHP service. In Laravel, it still overlaps heavily with Laravel Socialite’s GitHub driver and adds little product value.league/oauth2-client compatibility. Modern Laravel stacks still require a time-boxed spike or should avoid the package.league/oauth2-client, this provider remains a small adapter and can be acceptable behind an internal wrapper. Avoid leaking provider-specific types into domain or auth services.GitHubOAuthClient interface and wrap the provider. Feature-flag a replacement—Socialite or a maintained custom provider—behind the same interface. If considering 2.0.0, treat it as a major upgrade: verify PHP constraints, league/oauth2-client compatibility, and callback behavior before changing production. Keep the same GitHub OAuth App client ID/secret/callback during cutover, preserve GitHub user ID as the identity key, and re-test email/scope behavior. Remove the package once no references remain.composer why, lockfile constraints, PHP version, league/oauth2-client major version, Laravel/Socialite version, and GitHub Enterprise endpoint configurability. Confirm whether 2.0.0 supports the target PHP runtime, not just PHP 7.1. Pin versions, run static analysis and software composition analysis, and test consent denial, state mismatch, missing email, token revocation, and major-version upgrade rollback paths.How can I help you explore Laravel packages today?