PHPackages                             remp/laravel-sso - 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. remp/laravel-sso

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

remp/laravel-sso
================

A Laravel Package to integrate REMP SSO

5.1.0(3mo ago)0426↓78.6%2MITPHPPHP ^8.3

Since Sep 22Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/remp2020/laravel-sso)[ Packagist](https://packagist.org/packages/remp/laravel-sso)[ RSS](/packages/remp-laravel-sso/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (21)Versions (35)Used By (2)

Laravel SSO connector
=====================

[](#laravel-sso-connector)

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

[](#installation)

To include the SSO connector within the project, update your `composer.json` file accordingly:

```
{
    "minimum-stability": "dev",
    "prefer-stable": true,
    "repositories": [
        {
            "type": "path",
            "url": "../Composer/laravel-sso"
        }
    ],
    "require": {
        // ...
        "remp/laravel-sso": "*"
    }
}
```

Include the service providers within your `config/app.php`:

```
'providers' => [
    // ...
    Remp\LaravelSso\Providers\SsoServiceProvider::class,
    // ...
];
```

### Web authentication (JWT)

[](#web-authentication-jwt)

Add new middleware to `$routeMiddleware` within your `App\Http\Kernel`:

```
protected $routeMiddleware = [
    // ...
    'auth.jwt' => VerifyJwtToken::class,
    // ...
];
```

Switch your application authentication in `config/auth.php`:

```
'defaults' => [
    'guard' => 'jwt',
    'passwords' => null,
],

'guards' => [
    // ...
    'jwt' => [
        'driver' => 'jwt',
        'provider' => null,
    ],
    // ...
]
```

Now you can protect your routes in `routes/web.php` by using `auth.jwt` middleware:

```
Route::middleware('auth.jwt')->group(function () {
    // ...
    Route::get('ping', 'SystemController@ping')->name('ping');
    Route::resource('foo', 'FooController');
    Route::resource('bar', 'BarController');
    // ...
});
```

#### Accessing user

[](#accessing-user)

You can use `Auth` facade to verify user presence and access his data.

```
Auth::user() // returns instance of Remp\LaravelSso\Contracts\Jwt\User
Auth::id() // returns current user ID
Auth::check() // checks if user is logged in
```

### API authentication (token)

[](#api-authentication-token)

When registered, `SsoServiceProvider` overrides default `token` auth and uses its own guard to authenticate the caller (`Remp\LaravelSso\Contracts\Token\Guard`).

Auth configuration for API should be then set as follows:

```
'guards' => [
    // ...
    'api' => [
        'driver' => 'token',
        'provider' => null,
    ],
    // ...
],
```

To make a request, you have to provide valid API token (via `Authorization: Bearer $token`) generated via REMP SSO web admin. If token is not provided or not valid, middleware will throw `AuthenticationException` for application's exception handler to handle.

Configuration
-------------

[](#configuration)

You can configure the connector either via Laravel config or environment variables. Following is the list of all available configuration options:

ConfigEnvironmentDefault`services.remp_sso.addr``REMP_SSO_ADDR``http://sso.remp.press``services.remp_sso.error_url``REMP_SSO_ERROR_URL``route('sso.error')`

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance82

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 68.6% 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 ~39 days

Recently: every ~26 days

Total

34

Last Release

101d ago

Major Versions

3.4.0 → 4.0.02025-04-24

4.3.1 → 5.0.02026-03-24

PHP version history (3 changes)3.1.0PHP ^8.0

4.0.0PHP ^8.2

5.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c733f9bd683c3814197d8a532b7da1ba1f631bb1efe1cde5f064feab1e24877?d=identicon)[rootpd](/maintainers/rootpd)

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

![](https://www.gravatar.com/avatar/2c30fdbc85cda35b94f7f59399918193a0289152281abcef344ec9ee82864177?d=identicon)[markoph](/maintainers/markoph)

![](https://www.gravatar.com/avatar/388b2cd05e363ad6d197285b6b1250c40bf71234454af0cae2c7d6ae3bf7a2f4?d=identicon)[lubos.michalik](/maintainers/lubos.michalik)

---

Top Contributors

[![rootpd](https://avatars.githubusercontent.com/u/812909?v=4)](https://github.com/rootpd "rootpd (24 commits)")[![miroc](https://avatars.githubusercontent.com/u/1230714?v=4)](https://github.com/miroc "miroc (8 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (3 commits)")

---

Tags

laravelSSOREMP

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M885](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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