PHPackages                             cedricve/simpleauth - 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. cedricve/simpleauth

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

cedricve/simpleauth
===================

A simple authentication driver for Laravel

v1.2.2(9y ago)012.6k3MITPHPPHP &gt;=5.4.0

Since Dec 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/cedricve/simpleauth)[ Packagist](https://packagist.org/packages/cedricve/simpleauth)[ RSS](/packages/cedricve-simpleauth/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

Simple auth
-----------

[](#simple-auth)

A simple authentication driver, which makes it possible to define one or more users in the app.config file. This is great for mockup projects or when you don't have/need a database. *This library extends the original Laravel auth drivers, so it uses exactly the same methods.*

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

[](#installation)

Install using composer:

```
composer require cedricve/simpleauth

```

Add the service provider in `app/config/app.php`:

```
'Cedricve\Simpleauth\SimpleauthServiceProvider',

```

The service provider will register a extension with the original auth manager. There is no need to register additional facades or objects.

Configuration
-------------

[](#configuration)

Change your default database connection name in `app/config/auth.php`:

```
'driver' => 'simple'

```

And add a new property to the `app/config/app.php` file:

```
'users' => [
    [
        "id" => 1,
        "username" => "root",
        "password" => "root",
        "firstname" => "Cédric",
        "secondname" => "Verstraeten"
        ...
    ],
    [
        "id" => 2,
        "username" => "root2",
        "password" => "root",
        "firstname" => "Cédric",
        "secondname" => "Verstraeten"
        ...
    ]
],

```

Examples
--------

[](#examples)

You can use the default Auth methods.

### Basic Usage

[](#basic-usage)

**Try to signin**

```
Auth::attempt(['username' => 'root', 'password' => 'root'))

```

**Retrieving the user that signed in**

```
$user = Auth::user();

```

More info about authentication:

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~42 days

Total

7

Last Release

3301d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1546779?v=4)[Cédric Verstraeten](/maintainers/cedricve)[@cedricve](https://github.com/cedricve)

---

Tags

authAuthenticationSimple

### Embed Badge

![Health badge](/badges/cedricve-simpleauth/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.7k51.8M371](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84611.1M63](/packages/php-open-source-saver-jwt-auth)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6783.6k6](/packages/hasinhayder-tyro)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2464.9k6](/packages/hasinhayder-tyro-login)[juliomotol/laravel-auth-timeout

Authentication Timeout for Laravel

43141.8k](/packages/juliomotol-laravel-auth-timeout)[firevel/firebase-authentication

Firebase authentication driver for Laravel

2225.0k3](/packages/firevel-firebase-authentication)

PHPackages © 2026

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