PHPackages                             ptpnid/ion-auth - 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. ptpnid/ion-auth

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

ptpnid/ion-auth
===============

Middleware Laravel untuk autentikasi via SSO ION

00PHP

Since Jul 12Pushed 10mo agoCompare

[ Source](https://github.com/yusren/ion-auth)[ Packagist](https://packagist.org/packages/ptpnid/ion-auth)[ RSS](/packages/ptpnid-ion-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

PHP ION Auth Client
===================

[](#php-ion-auth-client)

Agar Framework Laravel9.x (PHP8.x) bisa menggunakan layanan SSO ION PTPN IV

Instalasi
---------

[](#instalasi)

1. Pasang package-nya

```
composer require ptpnid/ion-auth
```

2. Siapkan parameter baru di file file .env

```
#...
ION_SSO_LOGIN_URL=login url sso ion
ION_REDIRECT_AFTER_LOGIN=kemana url client akan diarahkan setelah berhasil login
ION_APP_KEY=diberikan oleh ion sso
ION_APP_SECRET=diberikan oleh ion sso
ION_SSO_API_URL=url sso ION
#...
```

3. Pastikan parameter telah berlaku

```
php artisan config:cache
```

Bagaimana menggunakan di Route?
-------------------------------

[](#bagaimana-menggunakan-di-route)

1. Untuk User biasa, Admin dan Guest

```
// Gunakan guard default (web)
Route::middleware('ion.auth')->get('/dashboard', fn () => view('dashboard'));

// Gunakan guard "admin"
Route::middleware('ion.auth:admin')->get('/admin', fn () => view('admin.dashboard'));

// Hanya bisa diakses jika BELUM login
Route::middleware('ion.auth:web,guest')->get('/welcome', fn () => view('guest.welcome'));
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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/37170e23da2a95bb75f98e35dac313198fcf4b991ccc1b840e4bad8efb18e9b4?d=identicon)[yusren](/maintainers/yusren)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ptpnid-ion-auth/health.svg)

```
[![Health](https://phpackages.com/badges/ptpnid-ion-auth/health.svg)](https://phpackages.com/packages/ptpnid-ion-auth)
```

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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