PHPackages                             barradev/multipleauth - 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. barradev/multipleauth

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

barradev/multipleauth
=====================

Modul multiple auth untuk modul Barra Dev Studio

1.2(5y ago)032MITPHP

Since Feb 25Pushed 5y agoCompare

[ Source](https://github.com/Barra-Dev-Studio/MultipleAuth)[ Packagist](https://packagist.org/packages/barradev/multipleauth)[ RSS](/packages/barradev-multipleauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Multiple Auth
=============

[](#multiple-auth)

Ini merupakan modul untuk membuat middleware yang dapat spesifik menentukan role user yang sedang login. Penerapannya di setiap route diberikan spesifik role apa saja yang bisa mengakses route tersebut.

### Instalasi

[](#instalasi)

```
composer require barradev/multipleauth

```

Setelah itu, jalankan perintah di bawah ini

```
php artisan multipleauth:publish

```

Jika sudah selesai, jangan lupa tambahkan baris kode ini di `kernel.php` bagian routeMiddleware

```
'multipleAuth'  => \App\Http\Middleware\MultipleAuth::class,
```

### Penggunaan

[](#penggunaan)

Di dalam route web.php, tambahkan middleware ini, contoh

```
Route::middleware(['auth', 'multipleAuth:admin,teacher'])->group(function () {
    // isi route
}
```

Maka route di atas hanya bisa diakses oleh user dengan role `admin` dan juga `teacher` saja

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

1906d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/barradev-multipleauth/health.svg)

```
[![Health](https://phpackages.com/badges/barradev-multipleauth/health.svg)](https://phpackages.com/packages/barradev-multipleauth)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[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)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

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

PHPackages © 2026

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