PHPackages                             mdspeirs/laravel-sso-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mdspeirs/laravel-sso-provider

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

mdspeirs/laravel-sso-provider
=============================

Provides custom SSO integration to Laravel 5 applications.

01PHPCI failing

Since Jul 2Pushed 6y agoCompare

[ Source](https://github.com/michaelspeirs/laravel-sso-provider)[ Packagist](https://packagist.org/packages/mdspeirs/laravel-sso-provider)[ RSS](/packages/mdspeirs-laravel-sso-provider/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel SSO Provider
====================

[](#laravel-sso-provider)

[![Build Status](https://camo.githubusercontent.com/a65a28ff126a3f8d4fadbd4d6a0ef46340d63fe5f52184183942605e567ab9ab/68747470733a2f2f7472617669732d63692e636f6d2f6d69636861656c7370656972732f6c61726176656c2d73736f2d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/michaelspeirs/laravel-sso-provider) [![Packagist](https://camo.githubusercontent.com/2582828e441157443d993490b2d8acd27c730b64fb3aad77c837b45664770248/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d69636861656c7370656972732f6c61726176656c2d73736f2d70726f76696465722e737667)](https://packagist.org/packages/michaelspeirs/laravel-sso-provider) [![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE.md)

Provides custom SSO integration to [Laravel 5](https://laravel.com) applications.

Where do I start?
-----------------

[](#where-do-i-start)

1\. Require the `mdspeirs/laravel-sso-provider` package.

```
composer require mdspeirs/laravel-sso-provider
```

2\. Use the library in your authentication controller.

```
use MDSpeirs\SSOProvider\Helpers\SSOHelper;

$sso = SSOHelper::login();

if ($sso->valid() && $sso->isStaffMember) {
  // Assumes you have a method defined elsewhere which returns an existing User object.
  $thisUser = findUserByStaffNumber($sso->staffNumber);

  if ($thisUser == null) {
    // We could not find user so lets create them.
    $thisUser = new User;
    $thisUser->staff_number = $sso->staffNumber;
  }

  // Keep name and email up to date with SSO data for new and existing users.
  $thisUser->full_name = $sso->fullName;
  $thisUser->email = $sso->email;

  // Save any changes made to the user.
  $thisUser->save();

  if ($thisUser != null) {
    // Finish the login using Laravel's Auth facade.
    Auth::login($thisUser, false);
  }
}
```

Testing
-------

[](#testing)

See  for CI results, run on each commit.

### Unit Testing

[](#unit-testing)

```
composer run test
```

Releasing
---------

[](#releasing)

Releases are automatically deployed to [Packagist](https://packagist.org/packages/michaelspeirs/laravel-sso-provider) from [Github](https://github.com/michaelspeirs/laravel-sso-provider).

---

Created [Down Under](https://en.wikipedia.org/wiki/Australia) by [Daniel Tedman](https://danieltedman.com) &amp; Michael Speirs

[![Australia](https://camo.githubusercontent.com/8238e54cd6b1da97c535493c8304ec7bdaa0d021df19af95bc7ea79f98430523/68747470733a2f2f64616e69656c7465646d616e2e636f6d2f696d616765732f4175737472616c69612e706e67)](https://en.wikipedia.org/wiki/Australia)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4043ed2e59474e31e5c94e834326cec74a148219affc50040f994ba4c0750d6?d=identicon)[mdspeirs](/maintainers/mdspeirs)

---

Top Contributors

[![mspeirs-griffith](https://avatars.githubusercontent.com/u/62678178?v=4)](https://github.com/mspeirs-griffith "mspeirs-griffith (8 commits)")

### Embed Badge

![Health badge](/badges/mdspeirs-laravel-sso-provider/health.svg)

```
[![Health](https://phpackages.com/badges/mdspeirs-laravel-sso-provider/health.svg)](https://phpackages.com/packages/mdspeirs-laravel-sso-provider)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
