PHPackages                             yaroslawww/laravel-fmc-sso-client - 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. yaroslawww/laravel-fmc-sso-client

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

yaroslawww/laravel-fmc-sso-client
=================================

FMC SSO client for laravel framework.

1.3.1(3y ago)035MITPHPPHP ^8.0

Since Sep 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yaroslawww/laravel-fmc-sso-client)[ Packagist](https://packagist.org/packages/yaroslawww/laravel-fmc-sso-client)[ Docs](https://github.com/yaroslawww/laravel-fmc-sso-client)[ RSS](/packages/yaroslawww-laravel-fmc-sso-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (14)Used By (0)

FMC SSO client for laravel framework.
=====================================

[](#fmc-sso-client-for-laravel-framework)

[![Packagist License](https://camo.githubusercontent.com/78ac915382c0427faae90a32047debea56fce3adeddb5befb3973984b2981552/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7961726f736c617777772f6c61726176656c2d666d632d73736f2d636c69656e743f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/78ac915382c0427faae90a32047debea56fce3adeddb5befb3973984b2981552/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7961726f736c617777772f6c61726176656c2d666d632d73736f2d636c69656e743f636f6c6f723d253233346463373166)[![Build Status](https://camo.githubusercontent.com/8f9c2175b5df3df2c47dc8fb9bd2dfadb5698c789d6f6eab576750fa72074e19/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7961726f736c617777772f6c61726176656c2d666d632d73736f2d636c69656e742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yaroslawww/laravel-fmc-sso-client/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/7ab6b8f9e42248ccd9c626f9ab9aa087ff56f2a8f2d55712479d3ab443ada090/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7961726f736c617777772f6c61726176656c2d666d632d73736f2d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yaroslawww/laravel-fmc-sso-client/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8c1104ec0ee848571cfb47967b813473b250cd349038765253f1a6daf20f8ea2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7961726f736c617777772f6c61726176656c2d666d632d73736f2d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yaroslawww/laravel-fmc-sso-client/?branch=master)

[![](./assets/img/fmc_logo.jpg)](https://fmc.co.uk/)

If your application uses multiple oAuth providers, it's easier to use a service-independent package like [laravel/socialite](https://github.com/laravel/socialite)

Installation
------------

[](#installation)

Install the package via composer:

```
composer require yaroslawww/laravel-fmc-sso-client
```

Set environment variables

```
# .env
FMC_SSO_CLIENT_ID="123456"
FMC_SSO_CLIENT_SECRET="RvYvYTDtMDt..."
FMC_SSO_REDIRECT_URL="https://my.app.home/fmc-sso/callback"
```

Optionally you can publish the config file with:

```
php artisan vendor:publish --provider="FMCSSOClient\ServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

The fastest way to add functionality is to create a class that extends `SSORouter`

```
use FMCSSOClient\Http\Controllers\SSORouter;
use FMCSSOClient\SSOUser;

class FMCSSORouter extends SSORouter
{
    protected function successUserCallback(SSOUser $user): mixed
    {
        $user->getId();
        $user->getName();
        $user->getEmail();
        // add/update database user based on returned object.
    }

    // Optional you can add custom scopes
    // public function scopes(): array
    // {
    //     return ['my:custom-scope', 'my:other-scope'];
    // }
}

```

Then add routes:

```
// /routes/web.php
Route::middleware( [ 'guest', /*...*/ ] )->group( fn() => \App\Domain\FMCSSO\FMCSSORouter::routes() );

```

This is it. The default login route is `http://my.domain.home/fmc-sso`

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~96 days

Total

13

Last Release

1302d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23663794?v=4)[yaroslawww](/maintainers/yaroslawww)[@yaroslawww](https://github.com/yaroslawww)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (20 commits)")

---

Tags

laravelSSOfmc

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslawww-laravel-fmc-sso-client/health.svg)

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

###  Alternatives

[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)

PHPackages © 2026

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