PHPackages                             risky-setiawan/sso-decoder - 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. risky-setiawan/sso-decoder

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

risky-setiawan/sso-decoder
==========================

JWT + AES helper for SSO encryption/decryption in Laravel

v1.0.0(11mo ago)05MITPHPPHP ^8.0

Since Jun 2Pushed 10mo agoCompare

[ Source](https://github.com/sinnersman/sso-decoder)[ Packagist](https://packagist.org/packages/risky-setiawan/sso-decoder)[ RSS](/packages/risky-setiawan-sso-decoder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SSO Decoder for Laravel
=======================

[](#sso-decoder-for-laravel)

Helper package for encrypting and decrypting JWT tokens using AES-256-CBC, suitable for building Single Sign-On (SSO) systems across Laravel applications.

Features
--------

[](#features)

- 🔐 AES-256-CBC encryption of JWT tokens
- 🧾 Custom payload support
- 🎯 Easy to use in Laravel controllers or services

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

[](#installation)

```
composer require risky-setiawan/sso-decoder
```

Publish
-------

[](#publish)

If you’re using Laravel &lt; 5.5, add the service provider manually in config/app.php:

```
'providers' => [
    // ...
    RiskySetiawan\SSODecoder\JWTServiceProvider::class,
],
```

Example
-------

[](#example)

Usage Example :

```
use RiskySetiawan\SSODecoder\JWTToken;

// Data payload
$payload = [
    'user_id' => 123,
    'email' => 'user@example.com',
];

// Secret key (harus sama di semua aplikasi yang pakai package ini)
$secret = 'your-very-secret-key';

// Enkripsi payload jadi token terenkripsi (JWT + AES256)
// Function urldecode in payload is very important not change !
$encryptedToken = JWTToken::encrypt(urldecode($payload), $secret);

// Kirim $encryptedToken ke aplikasi lain, atau simpan di client

// Dekripsi token kembali ke payload array
$decryptedPayload = JWTToken::decrypt($encryptedToken, $secret);

print_r($decryptedPayload);

/*
Output:
[
    'user_id' => 123,
    'email' => 'user@example.com',
]
*/
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance53

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

351d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/risky-setiawan-sso-decoder/health.svg)

```
[![Health](https://phpackages.com/badges/risky-setiawan-sso-decoder/health.svg)](https://phpackages.com/packages/risky-setiawan-sso-decoder)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

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