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

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

ijp/auth
========

user authentication using jwt which returns cookies access\_token and refresh token which will be checked by middleware

2.1.4(11mo ago)037PHPPHP ^8.0

Since May 10Pushed 11mo ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (35)Used By (0)

Library Auth IJP
================

[](#library-auth-ijp)

Library untuk autentikasi dan otorisasi aplikasi Laravel.

Instalasi
---------

[](#instalasi)

Anda dapat menginstal library ini melalui Composer:

```
composer require ijp/auth-library
```

Setelah Instalasi
-----------------

[](#setelah-instalasi)

Setelah menjalankan `composer require`, ada beberapa langkah yang perlu Anda lakukan:

1. **Publish Konfigurasi**

    ```
    php artisan ijp:install
    ```

    Perintah ini akan menyalin file konfigurasi ke folder `Controller,Middleware,Helper,Route,` aplikasi Anda.

    jika tidak muncul secara otomatis maka lajankan publis secara manual

    ```
    php artisan vendor:publish --tag=jwt-auth-routes
    php artisan vendor:publish --tag=jwt-auth-migrations
    php artisan vendor:publish --tag=jwt-auth-routes
    ```
2. **Impementasikan Jwt ke dalam model user**

    ```
    use Tymon\JWTAuth\Contracts\JWTSubject;
    use Ijp\Auth\Traits\IjpAuth;

    class User extends Authenticatable implements JWTSubject
    {
        use Notifiable , IjpAuth;
         protected $keyType = 'string';

        // Implementasi metode yang diperlukan

    }
    ```

    Pastikan model User Anda mengimplementasikan interface `JWTSubject` dan menggunakan trait `Notifiable`.
3. **Tambahkan Middleware ke Kernel.php**Jika Anda menggunakan middleware untuk autentikasi dan otorisasi, tambahkan middleware berikut ke dalam file `bootstrap/app.php`:

    ```
        ->withMiddleware(function (Middleware $middleware) {
         $middleware->alias([
             'authcheck' => AuthCheck::class,
         ]);
     })
    ```
4. **Jwt Secret**Anda perlu mengatur JWT secret key. Jalankan perintah berikut untuk menghasilkan kunci rahasia:

    ```
     php artisan jwt:secret

    ```
5. **Controller**Anda dapat menggunakan controller yang telah disediakan untuk melakukan autentikasi dan otorisasi. Berikut adalah contoh penggunaan controller:

    ```
    use App\Http\Controllers\AuthController;

    Route::post('/login', [AuthController::class, 'login']);;
    ```

    anda juga dapat mendesin controller sesuai kebutuhan anda
6. **Helper**Anda juga dapat menggunakan helper yang telah disediakan untuk melakukan autentikasi dan otorisasi. Berikut adalah contoh penggunaan helper:

    ```
    use App\Helpers\ResponseJsonFormater;
    ```

    anda juga dapat mendesin helper sesuai kebutuhan anda

Kontribusi
----------

[](#kontribusi)

Silakan kontribusi dengan membuat pull request atau issue pada repository GitHub.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance50

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

34

Last Release

357d ago

Major Versions

0.0.9 → 1.0.02025-05-10

1.0.9 → 2.0.02025-05-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/24b64bebc6134c37ec64fd74eaaffd3022a19bc9f4b4f1692c43acc3962050a7?d=identicon)[Dais](/maintainers/Dais)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[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)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)[patrickbussmann/oauth2-apple

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

1132.5M6](/packages/patrickbussmann-oauth2-apple)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)

PHPackages © 2026

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