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

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

davidgut/simple-auth
====================

A simple authentication package for Laravel.

v2.0.0(1mo ago)11MITPHPPHP ^8.3

Since Dec 16Pushed 1mo agoCompare

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

READMEChangelogDependencies (8)Versions (4)Used By (0)

Simple Auth for Laravel
=======================

[](#simple-auth-for-laravel)

A flexible, drop-in authentication package for Laravel applications, featuring Magic Links and standard Password authentication. No JavaScript required.

Features
--------

[](#features)

- **Magic Link Authentication**: Secure, passwordless login via email.
- **Password Authentication**: Traditional email/password flow with Forgot Password functionality.
- **Security First**: Rate limiting, timing attack protection, and secure URL signing.
- **Agnostic Views**: Clean, unstyled Blade views (Tailwind-ready classes) that inherit your app's design.
- **Internationalization**: Fully translatable UI strings.
- **Configurable**: Extensive configuration for methods, redirects, and user models.

Installation
------------

[](#installation)

```
composer require davidgut/simple-auth
```

### Configuration

[](#configuration)

To customize `config/simple-auth.php`, publish the configuration file:

```
php artisan vendor:publish --tag="simple-auth-config"
```

### Views

[](#views)

To customize the login and signup pages, publish the views:

```
php artisan vendor:publish --tag="simple-auth-views"
```

### Translations

[](#translations)

To customize the text strings, publish the language files:

```
php artisan vendor:publish --tag="simple-auth-lang"
```

### Assets

[](#assets)

To ensure the login pages are styled correctly, publish the package assets (compiled Tailwind CSS):

```
php artisan vendor:publish --tag="simple-auth-assets"
```

### Auth Methods

[](#auth-methods)

### Environment Variables

[](#environment-variables)

You can configure the package by adding the following variables to your `.env` file:

```
SIMPLE_AUTH_DEFAULT_METHOD=password
SIMPLE_AUTH_MAGIC_LINK_ENABLED=true
SIMPLE_AUTH_MAGIC_LINK_TTL=15
SIMPLE_AUTH_PASSWORD_ENABLED=true
SIMPLE_AUTH_REDIRECT_AFTER_LOGIN=/
SIMPLE_AUTH_REDIRECT_AFTER_LOGOUT=/
```

Usage
-----

[](#usage)

### Routes

[](#routes)

The package registers the following routes automatically:

- `GET /login` - Login page
- `POST /login/{method}` - Process login
- `GET /signup` - Signup page
- `POST /signup` - Process signup
- `POST /logout` - Logout
- `GET /forgot-password` - Request password reset link
- `POST /forgot-password` - Send password reset link
- `GET /reset-password/{token}` - Reset password form
- `POST /reset-password` - Update password

### Views

[](#views-1)

The views are available at `resources/views/vendor/simple-auth` after publishing. They use standard Tailwind CSS classes and link to the published `simple-auth.css`.

### Translations

[](#translations-1)

All text strings are translatable. After publishing, you can find them in `resources/lang/vendor/simple-auth`.

Testing
-------

[](#testing)

Run the test suite:

```
./vendor/bin/pest
```

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance88

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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 ~47 days

Total

3

Last Release

58d ago

Major Versions

v1.1.0 → v2.0.02026-03-22

PHP version history (2 changes)v1.0.0PHP ^8.2

v2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1163b75d4f25d863e452d8118eb3b266c29656783beb9a9c02c9498ced60b8e?d=identicon)[davidgut\_](/maintainers/davidgut_)

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[olssonm/l5-very-basic-auth

Laravel stateless HTTP basic auth without the need for a database

1662.5M1](/packages/olssonm-l5-very-basic-auth)[stechstudio/laravel-jwt

Helper package that makes it easy to generate, consume, and protect routes with JWT tokens in Laravel

126117.6k](/packages/stechstudio-laravel-jwt)[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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