PHPackages                             smashed-egg/laravel-in-memory-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. smashed-egg/laravel-in-memory-auth

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

smashed-egg/laravel-in-memory-auth
==================================

This package allows you to Authenticate an admin area without the need for a database.

1.2.1(2mo ago)032MITPHPPHP ^8.0.2CI passing

Since Feb 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/smashed-egg/laravel-in-memory-auth)[ Packagist](https://packagist.org/packages/smashed-egg/laravel-in-memory-auth)[ RSS](/packages/smashed-egg-laravel-in-memory-auth/feed)WikiDiscussions master Synced 1mo ago

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

 [![](https://raw.githubusercontent.com/smashed-egg/.github/05d922c99f1a3bddea88339064534566b941eca9/profile/main.jpg)](https://raw.githubusercontent.com/smashed-egg/.github/05d922c99f1a3bddea88339064534566b941eca9/profile/main.jpg)

Laravel In Memory Auth Provider
===============================

[](#laravel-in-memory-auth-provider)

[![Latest Stable Version](https://camo.githubusercontent.com/cd2bebeefdcecf6a9550f8354289fb5a44323efca535dce2aadd89e395203065/68747470733a2f2f706f7365722e707567782e6f72672f736d61736865642d6567672f6c61726176656c2d696e2d6d656d6f72792d617574682f762f737461626c65)](https://github.com/smashed-egg/laravel-in-memory-auth/releases)[![Downloads this Month](https://camo.githubusercontent.com/5988f05e5af8383be91e628abfd1647d4e15e05d757005041b10aac2bf80a9dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f736d61736865642d6567672f6c61726176656c2d696e2d6d656d6f72792d617574682e737667)](https://packagist.org/packages/smashed-egg/laravel-in-memory-auth)

An In Memory User Auth Provider for Laravel 9+.

Allows you to Authenticate an admin area without the need for a database. Great as a quick and temporary solution during development, particularly if your site is mocked out and not let using a database.

Requirements
------------

[](#requirements)

- PHP 8.0.2+
- Laravel 9.0+

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

[](#installation)

To install this package please run:

```
composer require smashed-egg/laravel-in-memory-auth

```

[Support Me](https://github.com/sponsors/tomgrohl)
--------------------------------------------------

[](#support-me)

Do you like this package? Does it improve you're development. Consider sponsoring to help with future development.

[Buy me a coffee!](https://github.com/sponsors/tomgrohl)

Thank you!

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

[](#configuration)

### Setup config

[](#setup-config)

In the `auth.php` config file you will need to set the driver:

```
'driver' => 'memory',
```

Add also setup your in memory users:

```
'memory' => [
    'driver' => 'memory',
    'model' => \SmashedEgg\LaravelInMemoryAuth\User::class,
    'username_field' => 'email',
    'users' => [

        /*
         'me@email.com' => [
            'id' => 1,
            'name' => 'My name',
            // Hashed password using the hasher service
            'password' => 'hashed_password',
        ],
         */

        'admin@example.com' => [
            'id' => 1,
            'email' => 'admin@example.com',
            'name' => 'Barry Allen'
            // Hashed password using the hasher service
            'password' => '$2y$10$Mfusxb1546MFxQ4A1s4GE.OF/gFuI8Y6Hw9xnlZeiHtjDl0/pnXPK',
            'remember_token' => '',
        ],
    ],
],
```

You can add any properties you want making it easy to switch out the Auth drivers.

The package comes with a command for hashing passwords, making it easier to setup passwords, just run the following command to hash your password:

```
php artisan smashed-egg:hash:password mypassword
```

Contributing
------------

[](#contributing)

Contributing is welcome. Please see our guide [here](.github/CONTRIBUTING.md).

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance87

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~222 days

Total

7

Last Release

66d ago

Major Versions

0.2.0 → 1.0.02025-08-06

### Community

Maintainers

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

---

Top Contributors

[![tomgrohl](https://avatars.githubusercontent.com/u/418838?v=4)](https://github.com/tomgrohl "tomgrohl (24 commits)")

---

Tags

phplaravelauthauthenication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smashed-egg-laravel-in-memory-auth/health.svg)

```
[![Health](https://phpackages.com/badges/smashed-egg-laravel-in-memory-auth/health.svg)](https://phpackages.com/packages/smashed-egg-laravel-in-memory-auth)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[cartalyst/sentinel

PHP 8.2+ Fully-featured Authentication &amp; Authorization System

1.6k2.7M72](/packages/cartalyst-sentinel)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)

PHPackages © 2026

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