Download the PHP package texhub/social-auth without Composer
On this page you can find all versions of the php package texhub/social-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download texhub/social-auth
More information about texhub/social-auth
Files in texhub/social-auth
Package social-auth
Short Description Simple, elegant social OAuth 2.0 login for any PHP framework with first-class Laravel support — Google & GitHub out of the box, easily extensible.
License MIT
Homepage https://texhub.pro
Informations about the package social-auth
TexHub · Social Auth
English · Русский
Simple, elegant social OAuth 2.0 login for any PHP framework — Google & GitHub out of the box, easily extensible — with first-class Laravel support.
Features
- OAuth 2.0 Authorization Code flow done for you
- Google & GitHub providers built in (GitHub falls back to the verified primary email)
- Normalized
User—id,nickname,name,email,avatar,token,raw - CSRF state helper, custom scopes & extra params
- Extensible — add your own provider in a few lines
- Fully unit-tested (no network), pluggable HTTP transport
Installation
Requirements: PHP ≥ 8.2 with curl, json.
Quick start
Google / GitHub
Both work identically — just switch the driver name:
Default scopes: Google → openid profile email, GitHub → read:user user:email.
Override per provider via scopes, and add provider params via extra
(e.g. Google ['access_type' => 'offline', 'prompt' => 'consent'] for a refresh token).
Add your own provider
Error handling
Laravel
Auto-discovered. Publish config:
.env:
Controller:
Routes:
Testing
Inject a fake transport — no network needed:
Architecture
License
MIT © TexHub Pro — built by Mahmudi Shodmehr.
All versions of social-auth with dependencies
ext-curl Version *
ext-json Version *