# overtrue/socialite

Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.

Repository: https://github.com/overtrue/socialite
Canonical: https://ross.abutalabs.com/products/overtrue-socialite
Language: PHP
License: MIT
License Family: permissive
Topics: socialite, oauth, laravel, login, oauth2-authentication, facebook, google, linkedin, social-login, wechat, weibo, dingtalk, alipay, oauth2, taobao, qq, douyin, baidu, feishu, douban
Last push: 2026-07-21T10:22:35+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 74, longevity 100
- inputs: {"age_days": 3929, "days_push": 43, "days_rel": 96, "gap_med": 75.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1373, forks 243 (observed 2026-08-28T04:04:32.834228+00:00)

## What it is
A framework-agnostic PHP OAuth2 authentication library inspired by laravel/socialite, supporting 20+ providers including GitHub, Google, Facebook, WeChat, Weibo, DingTalk, Alipay, and Douyin. It handles the redirect/authorize flow and exchanges callback codes for access tokens and user profiles.

## Use cases
- add social login to a plain PHP project
- authenticate users via WeChat or Weibo OAuth
- get user profile and access token from OAuth2 callback
- implement sign-in with Google, GitHub, or Facebook without Laravel
- support multiple OAuth providers with one library
- integrate DingTalk or Feishu login in a PHP app

## When to choose
- you need OAuth2 social login in any PHP project without the Laravel framework
- you need Chinese platform providers like WeChat, QQ, Weibo, DingTalk, or Alipay
- you want a simple config-driven multi-provider setup

## When to avoid
- you are building a Laravel app and prefer the official laravel/socialite integration
- you need OAuth1 or providers not covered by the library
- you need full identity management rather than just OAuth authentication

## Facets
- artifact type: library
- maturity: active
- function: auth, http-client, sdk
- domain: web-development, security, apis, backend
- platform: php
- tags: oauth2, social-login, laravel-inspired, wechat, chinese-platforms, sso

## Member repositories
- overtrue/socialite (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.834228+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:43.244500+00:00, confidence not recorded.
  - readme: https://github.com/overtrue/socialite (fetched 2026-08-28T04:04:32.834228+00:00, sha c9a6d93b4064)
- Data as of 2026-08-30T08:39:29.467469+00:00.
