PHPackages                             prince-rai/custom-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. prince-rai/custom-auth

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

prince-rai/custom-auth
======================

Custom authentication package for Laravel by Prince Rai

v1.0.5(1y ago)017MITBlade

Since Mar 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laravel-princerai/prince-rai-custom-auth)[ Packagist](https://packagist.org/packages/prince-rai/custom-auth)[ RSS](/packages/prince-rai-custom-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Custom Auth Package for Laravel
===============================

[](#custom-auth-package-for-laravel)

📌 Introduction
--------------

[](#-introduction)

This package provides a custom authentication system for Laravel applications, including login, registration, and logout functionality. It allows you to integrate authentication quickly without rewriting the logic every time.

🛠️ Installation
---------------

[](#️-installation)

### 1️⃣ **Install via Composer**

[](#1️⃣-install-via-composer)

Run the following command in your Laravel project:

```
composer require prince-rai/custom-auth
```

### 2️⃣ **Publish Package Assets**

[](#2️⃣-publish-package-assets)

After installation, publish the package assets (views, config, migrations) using:

```
php artisan vendor:publish --provider="PrinceRai\CustomAuth\CustomAuthServiceProvider"
```

This will copy:

- Views to `resources/views/vendor/custom-auth/`
- Config file to `config/custom-auth.php`

### 3️⃣ **Run Migrations** (if needed)

[](#3️⃣-run-migrations-if-needed)

```
php artisan migrate
```

🚀 Usage
-------

[](#-usage)

### **Routes**

[](#routes)

The package automatically loads authentication routes. If you need to reference them manually, add these in your `routes/web.php`:

```
use PrinceRai\CustomAuth\Controllers\LoginController;
use PrinceRai\CustomAuth\Controllers\RegisterController;

Route::middleware(['web'])->group(function () {
    Route::get('/login', [LoginController::class, 'index'])->name('login');
    Route::post('/custom-login', [LoginController::class, 'authLogin'])->name('custom.login');
    Route::get('/register', [RegisterController::class, 'index'])->name('register');
    Route::post('/register', [RegisterController::class, 'register'])->name('custom.register');
    Route::get('/logout', [LoginController::class, 'logout'])->name('logout');
    Route::get('/home', [LoginController::class, 'home'])->name('home');
});
```

### **Views**

[](#views)

After publishing, the authentication views will be in:

```
resources/views/vendor/custom-auth/

```

To modify them, edit files in this directory.

### **Controllers**

[](#controllers)

The package provides `LoginController` and `RegisterController`. You can extend them in your Laravel app if needed.

⚙️ Configuration
----------------

[](#️-configuration)

The package provides a configuration file at `config/custom-auth.php`. You can modify authentication settings there.

❌ Uninstallation
----------------

[](#-uninstallation)

If you need to remove the package, run:

```
composer remove prince-rai/custom-auth
```

📜 License
---------

[](#-license)

This package is open-source and licensed under the [MIT License](LICENSE).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

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

Every ~0 days

Total

6

Last Release

414d ago

### Community

Maintainers

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

---

Top Contributors

[![fullstack-princerai](https://avatars.githubusercontent.com/u/88419316?v=4)](https://github.com/fullstack-princerai "fullstack-princerai (10 commits)")

### Embed Badge

![Health badge](/badges/prince-rai-custom-auth/health.svg)

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

###  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)
