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

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

eximius/laravel-nincomply-sso
=============================

Nincomply SSO package for Laravel Framework

v1.0.3(1y ago)07[4 PRs](https://github.com/Kazeeem/laravel-nincomply-sso/pulls)MITPHPPHP ^8.1CI passing

Since Jan 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Kazeeem/laravel-nincomply-sso)[ Packagist](https://packagist.org/packages/eximius/laravel-nincomply-sso)[ Docs](https://github.com/eximius/laravel-nincomply-sso)[ GitHub Sponsors](https://github.com/eximius)[ RSS](/packages/eximius-laravel-nincomply-sso/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (9)Used By (0)

Nincomply SSO package for Laravel Framework
===========================================

[](#nincomply-sso-package-for-laravel-framework)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5b2b1c87e2a87e4b5a4109cc94070d3d72945e342dee2ab8b68461579122ab9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6578696d6975732f6c61726176656c2d6e696e636f6d706c792d73736f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eximius/laravel-nincomply-sso)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5aef78015dd3ede937acc0f447c5d82b7d0d21d27de0df205b83b1e342724c79/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6578696d6975732f6c61726176656c2d6e696e636f6d706c792d73736f2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eximius/laravel-nincomply-sso/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1609b64ea78a535f56971ca23075345dc5ff5c65b67e24840342627e1ae443f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6578696d6975732f6c61726176656c2d6e696e636f6d706c792d73736f2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/eximius/laravel-nincomply-sso/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6d2355cd4196f747a5957c00eca4cf3608ef6a06d86d42043c545f270313746e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6578696d6975732f6c61726176656c2d6e696e636f6d706c792d73736f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eximius/laravel-nincomply-sso)

Nincomply SSO package for Laravel Framework

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

[](#installation)

You can install the package via composer:

```
composer require eximius/laravel-nincomply-sso
```

You need to add the following parameters to your .env file and their appropriate values, you must have created an account on Nincomply and obtained the SSO credentials before you can do this.

```
NINCOMPLY_CLIENT_ID=
NINCOMPLY_CLIENT_SECRET=
NINCOMPLY_SSO_REDIRECT_URI=
```

(Optional) You may publish the config file with:

```
php artisan vendor:publish --tag="nincomply-sso-config"
```

This is the contents of the published config file:

```
return [
    'client_id' => env('NINCOMPLY_CLIENT_ID'),
    'client_secret' => env('NINCOMPLY_CLIENT_SECRET'),
    'redirect_uri' => env('NINCOMPLY_SSO_REDIRECT_URI'),
];
```

Usage
-----

[](#usage)

To get the redirect URL where users will get to sign in using their Nincomply account credentials.

```
use Eximius\Nincomply;
use Illuminate\Support\Facades\Redirect;

$nincomply = new Nincomply();
Redirect::to($nincomply->ssoUrl());
```

OR

You may use the Nincomply Facade

```
use Eximius\Nincomply\Facades\Nincomply;
use Illuminate\Support\Facades\Redirect;

Redirect::to(Nincomply::ssoUrl());
```

To get the access token. This is when the user gets redirected back to your website after signing in on the Nincomply SSO, there will be a `code` parameter in the URL, that is what you need to get the access token.

```
use Eximius\Nincomply\Facades\Nincomply;

$code = request()->query('code');
$accessToken = Nincomply::getAccessToken($code));

Sample response:
{
  "token_type": "Bearer",
  "expires_in": 1295999,
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJkMDNiZjQwNC0yYWU4LTRmMjQtYTk3My1lZWIyZjNlNjA2NDEiLCJqdGkiOiIwYzZhMjBmNWJjMDBmYmZhMDk1OWQ0NzRhMTZjMDQ2N2FiYzhiOWE4YTE1Y2M4OTUxN2EyZmQzZjk1NGQ4MGRmMGUyYTUxYzdjZWFkOTYwZCIsImlhdCI6MTcyNDMxNDEzNy40MjYwMzgwMjY4MDk2OTIzODI4MTI1LCJuYmYiOjE3MjQzMTQxMzcuNDI2MDQ3MDg2NzE1Njk4MjQyMTg3NSwiZXhwIjoxNzI1NjEwMTM0LjI0NzU2MDk3NzkzNTc5MTAxNTYyNSwic3ViIjoiMSIsInNjb3BlcyI6W119.c7FbFljz-I3nKaSzOqy5cK9DR0q1azC3weXIB86nWVHGkZXY3hSrjCcMXrF3ccEO8RmWT3RS4IdxkuWMV2VLVYntg-ueqO7f2HI0s1SRobbOZyAAbww1D0lnhavCfMAIshhCLkewCdUEwQMZF9AL0SPO2jMVYTPGjQOroRN2YBaBa9Z7ybQUetszeuF10ha2FI42PumgCaXDs_8XSrPQO6k1CYO0YDRPfo8-bs4mBSE8PQyba4vmgL_7bfNjUr3nC7G8JvY3jkmOzKVDnQgVpwQRB33mJs93BJ8AyOa4E5N-0h0MJPbNv_2phZI4kjHAEow1mIJkF8Gz5zkRtyxbYEvBanCSeGiVaung7mVlAQ4haipf6C8yE1AHXccxfBNOiTGdPb0a0Fkt2JaCscxZkMp7DS5S4xRvaAMpCn7xBQpztlTHWytBY96mJ3vVzOE5KdBLgH3bVR_DaRddw4mpLBwMnyJHT5NIj83tn_GWy9G2WzD7ay9TQOV8L4edfdQlrQxs1wItwX7F7zZh0Hv1r-agQLXY3AzGQHEwYCSTL1kphUxJR860Dl8hkaXhfVpUiMyIwP1zcN-5kk6Y7zH2NBfrKOXjb5AdnqltRM-rd0kIk0qNuSJnv1RKf3I8QTDKuBO15nFuODkYFktxLmMRQz-V97DqUYeY_m0OevbcuLo",
  "refresh_token": "def5020050d2d10c0a4a6c9abaac312cb81709fd4bc1f56ed48428b2d65dd4db9c4338e8888ecd4588a7c958fb68c9b8027ee6a3359d1fd788e6c60c6323550f427c302cc70689f36c45f1e601e10020321ae9a1eca107720a7de48707da78f24ed7625dc0f211efdfe5d7dd7b1a38b45bec018181572f7249981ca635b381c97bbd9b86f478beeb30b56a413f4de5b44719e898618b83db44429a31b057d6369ca196dcab79f6201e692934b8028e9435a7e87b0bf7a8706847018367189aeb3e1a85341995f1767dd5c883dd4c7bc928627b39f13e35fcf699f3da97946cb3cb099c6ff3f7a794ab057f42382ab45e625f649de1844aa29cf693b6094b29c67e964087b847e7582557bf8d6b3a2b80fbf3b5a47684f37cb34e53d36a71e5b67de3b6dfb91c87aaf6407db9ba4430083e3c1327b0c88f5d95aa3f35578e18a7420a2a17490d1419c804371dcdcbbd6ce6608b6e279a6bbe4db0d821a3ef93cfea8a3c59091bba5a128c456d691449e67e3ac8b5ce8cf079464033611e5d9a29256c3415"
}
```

To get the details of the authenticated user, you will need the access token from the request above.

```
use Eximius\Nincomply\Facades\Nincomply;

$user = Nincomply::getUser($accessToken));
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Kazeem Asifat](https://github.com/Kazeeem)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance69

Regular maintenance activity

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.3% 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 ~0 days

Total

4

Last Release

494d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f469980a9c6588ca4d33df6f702fb52473f71a8cb368e7a106fb458cafb82da?d=identicon)[Kazeeem](/maintainers/Kazeeem)

---

Top Contributors

[![Kazeeem](https://avatars.githubusercontent.com/u/35298707?v=4)](https://github.com/Kazeeem "Kazeeem (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

dragnetnincomplyssolaraveleximiuslaravel-nincomply-sso

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)

PHPackages © 2026

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