PHPackages                             fadhil\_riyanto/noauth-laravel - 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. fadhil\_riyanto/noauth-laravel

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

fadhil\_riyanto/noauth-laravel
==============================

static auth set without DB

00PHP

Since Feb 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fadhil-riyanto/noauth-laravel)[ Packagist](https://packagist.org/packages/fadhil_riyanto/noauth-laravel)[ RSS](/packages/fadhil-riyanto-noauth-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NoAuth Laravel
--------------

[](#noauth-laravel)

is a non-database authentication that keeps authentication as small as possible. good for single-user APP

Setup
-----

[](#setup)

create your password list inside .env with comma-separated string

```
NOAUTH_PASSWORD="abc123,foobar123,otherxyz"
```

first, use the namespace

```
use FadhilRiyanto\NoAuthLaravel\NoAuth;
```

defining routes for guest which try access route with `NoAuthMiddleware` class, the route must be named as 'noauth-guest', example

```
// guest will redireced here
Route::get('login', function() {
        return view('admin/login');
})->name("noauth-guest");
```

define admin route with middleware, example

```
// protect admin page using middleware NoAuthMiddleware
Route::get('home', [Controllers\AdminController::class, 'handle_admin_homepage'])
                ->middleware(NoAuthMiddleware::class);
```

authentication example, `NoAuth::attemp` is automatically create a session if successful and return false otherwise

```
class AdminController extends Controller
{
        public function handle_admin_login_ajax(Request $request)
        {
                $validator = Validator::make($request->all(), [
                        'password' => 'required',
                ]);

                $validated = $validator->validated();

                if (NoAuth::attemp($request)) {
                        return response()->json(["message" => "Welcome"], 200);
                } else {
                        return response()->json(["message" => "The provided credentials do not match our records"], 400);
                }
        }
}
```

### Maintainer:

[](#maintainer)

[Fadhil-Riyanto](https://github.com/fadhil-riyanto)

License
-------

[](#license)

GPL-2.0

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

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/8af794e0206d05eb8311bca1f7410972111fb6571094263aec50326ba87fba90?d=identicon)[fadhil riyanto](/maintainers/fadhil%20riyanto)

---

Top Contributors

[![fadhil-riyanto](https://avatars.githubusercontent.com/u/61084125?v=4)](https://github.com/fadhil-riyanto "fadhil-riyanto (7 commits)")

---

Tags

authauthenticationlaravelwithout-db

### Embed Badge

![Health badge](/badges/fadhil-riyanto-noauth-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/fadhil-riyanto-noauth-laravel/health.svg)](https://phpackages.com/packages/fadhil-riyanto-noauth-laravel)
```

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