Skip to content
CAI
Software that uses CAICheck a score

laravel/socialite

59.5

Adequate · 17 November 2026

3k

lines of production code

PHP

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Major overhaul of Socialite OAuth2 providers and core classes

This change introduces several new OAuth2 providers (Bitbucket, Gitlab, LinkedIn OpenID, Slack OpenID, Twitch, Twitter, and X) and significantly updates existing ones (Facebook, GitHub, Google, LinkedIn, Slack) to support modern API versions, OIDC tokens, and PKCE. The core \AbstractProvider\ and \User\ classes have been refactored to support refresh tokens, approved scopes, and a new \Token\ class, while the \User\ class now includes a \fake()\ method for testing.

src/Two · high confidence

Socialite facade gains a fake() method for testing

The Socialite facade now includes a static fake() method, allowing developers to easily mock social authentication flows in tests by swapping the underlying factory with a SocialiteFake instance. This change also updates the SocialiteManager to implement the Factory contract and improves the SocialiteServiceProvider to register the factory as a singleton and support deferred loading.

src · high confidence

Behavioural changes

Enhanced OAuth 1.0 provider capabilities and testing support

The Socialite One component now provides better integration with Laravel's HTTP and session handling by switching to Illuminate's RedirectResponse and using the session helper. It introduces new exception classes (MissingTemporaryCredentialsException, MissingVerifierException) for clearer error handling. The Twitter provider has been expanded to include location and description fields, support for original-sized avatars, and the ability to set OAuth scopes. Additionally, a new userFromTokenAndSecret method allows retrieving user profiles from existing credentials, and a User::fake() static method has been added to facilitate testing by creating mock user instances.

src/One · high confidence

Redefine socialite contracts and introduce Factory interface

The library's contract layer has been reorganized: the previous \ProviderInterface\ from the \One\ namespace is renamed to \Provider\ and moved to \src/Contracts\, with its \redirect()\ return type broadened to also accept \Illuminate\\Http\\RedirectResponse\ and its \user()\ method now returning the new \Contracts\\User\ interface. A new \Factory\ interface is added to allow retrieving provider instances by driver name, and a new \User\ interface is introduced to standardize access to user attributes (ID, nickname, name, email, avatar).

src/Contracts · high confidence

Repository configuration and documentation overhaul

This change introduces several structural and documentation updates to the repository. It adds standard configuration files including \.editorconfig\ for consistent coding styles, \.gitattributes\ to manage line endings and export ignores, \.styleci.yml\ for StyleCI integration, and \phpstan.neon.dist\ for static analysis. The CI system has been migrated from Travis CI (\.travis.yml\ removed) to GitHub Actions, and the PHPUnit configuration has been renamed to \phpunit.xml.dist\ with updated test directory patterns and deprecation handling. Documentation has been refreshed with a new \README.md\, \CHANGELOG.md\, and \UPGRADE.md\ guide, while the license file was renamed from \LICENSE.txt\ to \LICENSE.md\ and the \.gitignore\ was updated to exclude local PHPUnit cache files.

(repo-wide) · high confidence

Simplified Socialite facade implementation

The Socialite facade has been refactored to extend the main Socialite class directly instead of inheriting from the generic Facade base class and manually implementing getFacadeAccessor. This change removes the explicit accessor registration ('socialite') and relies on the parent class's built-in facade resolution mechanism, resulting in a cleaner, more concise facade definition.

src/Facades · high confidence

Throw exception for incomplete OAuth driver configuration

A new \DriverMissingConfigurationException\ has been added to the \src/Exceptions\ directory. This exception is thrown when required configuration keys are missing for a specific OAuth provider, providing a clear error message that identifies the provider and the missing keys, rather than failing silently or with a generic error.

src/Exceptions · high confidence

Test coverage

Added testing fakes for Socialite providers; Expanded test coverage for Socialite providers and testing utilities.

Dependencies

Laravel Socialite 5.x: Major dependency and framework version updates

This release updates the composer.json manifest to require PHP 8.1 or higher and introduces auto-discovery support for Laravel 5.5 through 13.x via the new 'extra.laravel' configuration. Key dependencies have been upgraded and expanded: Guzzle is now supported in versions 6.0, 7.0, and 8.0; the Firebase JWT library is updated to versions 6.4 or 7.0; and phpseclib is upgraded to version 4.0. Development dependencies have also been refreshed, with PHPUnit, Mockery, and Orchestra Testbench updated to their latest compatible major versions, and PHPStan added for static analysis.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 59.9 → 59.5 (-0.4)
  • Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 50.1 → 49.6 (-0.5)
  • Architecture 100.0 → 90.1 (-9.9)
  • Maturity 54.6 → 55.5 (+0.9)
  • Readiness 83.3 → 83.3 (0.0)
  • Security 77.3 → 77.3 (0.0)

Resolved (3)

  • Duplicated block (22 lines × 2) (src/Two/TwitterProvider.php)
  • Further sole-owners (lower concentration)
  • Off-boarding risk: anonymized user #1

New (8)

  • Circular dependency (src/SocialiteManager.php)
  • Edited copies of one member (3 members, 6+ corresponding lines) (src/Two/AbstractProvider.php)
  • Edited copies of one member (3 members, 8+ corresponding lines) (src/Two/AbstractProvider.php)
  • Edited copy of a member (20 corresponding lines) (src/One/AbstractProvider.php)
  • Edited copy of a member (6 corresponding lines) (src/Two/TwitterProvider.php)
  • Off the main sequence: src/Exceptions
  • Off-boarding risk: anonymized user #1
  • Orphaned file (src/Two/BitbucketProvider.php)

Changes since last survey

  • 4 commits — 4 feature/other, 0 fixes

By area

  • (root) — 2 commits
  • src/SocialiteManager.php — 1 commit
  • src/Two — 1 commit

Notable commits

  • change: Merge pull request #798 from laravel/security-dependency-floors
  • change: Resolve relative OAuth callbacks against the configured application URL (#799)
  • change: Treat a non-string state as invalid (#801)
  • change: Update CHANGELOG

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

laravel/socialite was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 8032bb1fa9d74aae54438f216e4d45db90d27ea9 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.85+preprod-eba6548ac50f.