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 *