PHPackages                             better-futures-studio/filament-local-logins - 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. better-futures-studio/filament-local-logins

ActiveLibrary

better-futures-studio/filament-local-logins
===========================================

This is my package filament-local-logins

1.4.0(1y ago)1331.5k↓73.8%4[4 PRs](https://github.com/better-futures-studio/filament-local-logins/pulls)MITPHPPHP ^8.1CI passing

Since Jan 21Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/better-futures-studio/filament-local-logins)[ Packagist](https://packagist.org/packages/better-futures-studio/filament-local-logins)[ Docs](https://github.com/better-futures-studio/filament-local-logins)[ GitHub Sponsors](https://github.com/better-futures-studio)[ RSS](/packages/better-futures-studio-filament-local-logins/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (14)Versions (12)Used By (0)

Filament Local Logins
=====================

[](#filament-local-logins)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4ce510931201795c808cc34eb2e6572eb86b219dfc4b8a20a2a61c95eacc8ec2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265747465722d667574757265732d73747564696f2f66696c616d656e742d6c6f63616c2d6c6f67696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/better-futures-studio/filament-local-logins)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f833a63ffbfe54a0f39a72f494706dff15ce4faec79ddf01d4dd669e68706b23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6265747465722d667574757265732d73747564696f2f66696c616d656e742d6c6f63616c2d6c6f67696e732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/better-futures-studio/filament-local-logins/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/eed64a6ca88542e41c4fc04b118aae92df8764ed5eea1c20af989d1bfcb1c0ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6265747465722d667574757265732d73747564696f2f66696c616d656e742d6c6f63616c2d6c6f67696e732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/better-futures-studio/filament-local-logins/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f826a3270c6cb11773365d5f03b3c6ce419d9078f2f97db75cc21c82ed3a6e9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265747465722d667574757265732d73747564696f2f66696c616d656e742d6c6f63616c2d6c6f67696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/better-futures-studio/filament-local-logins)

This package allows you to log in locally using pre-set email addresses, making it easy to log into one or multiple development user accounts. It can be used in an admin panel or multiple panels.

**NOTE:** You must have created the user accounts in order to use them with the login buttons, this package doesn't support the creation of user accounts.

Output
------

[](#output)

[![SCR-20240103-qijm.png](https://camo.githubusercontent.com/283c06ab4c8de29ec5e9ae2c7487d936fe181ee0967fba110bc80c8f418e6f51/68747470733a2f2f692e706f7374696d672e63632f625957374d354d5a2f5343522d32303234303130332d71696a6d2e706e67)](https://camo.githubusercontent.com/283c06ab4c8de29ec5e9ae2c7487d936fe181ee0967fba110bc80c8f418e6f51/68747470733a2f2f692e706f7374696d672e63632f625957374d354d5a2f5343522d32303234303130332d71696a6d2e706e67)

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

[](#requirements)

This package requires the following:

- `PHP:^8.1`
- `Filament:^3.0`

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

[](#installation)

You can install the package via composer:

```
composer require better-futures-studio/filament-local-logins
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-local-logins-config"
```

This is the contents of the published config file:

```
use BetterFuturesStudio\FilamentLocalLogins\Filament\Pages\Auth\LoginPage;

return [
    'panels' => [
        'admin' => [
            'enabled' => env('ADMIN_PANEL_LOCAL_LOGINS_ENABLED', env('APP_ENV') === 'local'),
            'emails' => array_filter(array_map('trim', explode(',', env('ADMIN_PANEL_LOCAL_LOGIN_EMAILS', '')))),
            'login_page' => LoginPage::class,
        ],
    ],
];
```

You can use it in multiple panels so if you want to add a configuration for a new panel, you can add a new config key with the panel id. For example, you can add `user` panel configuration like this:

```
use BetterFuturesStudio\FilamentLocalLogins\Filament\Pages\Auth\LoginPage;

return [
    'panels' => [
        'admin' => [
            'enabled' => env('ADMIN_PANEL_LOCAL_LOGINS_ENABLED', env('APP_ENV') === 'local'),
            'emails' => array_filter(array_map('trim', explode(',', env('ADMIN_PANEL_LOCAL_LOGIN_EMAILS', '')))),
            'login_page' => LoginPage::class,
        ],
        'user' => [
            'enabled' => env('USER_PANEL_LOCAL_LOGINS_ENABLED', env('APP_ENV') === 'local'),
            'emails' => array_filter(array_map('trim', explode(',', env('USER_PANEL_LOCAL_LOGIN_EMAILS', '')))),
            'login_page' => LoginPage::class,
        ],
    ],
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-local-logins-views"
```

Usage
-----

[](#usage)

Set the `ADMIN_PANEL_LOCAL_LOGIN_EMAILS` in your .env file to use this package.

In your .env file, add the following:

```
ADMIN_PANEL_LOCAL_LOGIN_EMAILS="free-user@example.com,paid-user@example.com" # Provide a comma-separated list of emails that can log in locally
```

If you wish to customize the default login page, you can modify the `'login_page' => LoginPage::class,` line to point to your desired class. After changing this, you will need to use the `HasLocalLogins` trait in your custom login page class.

```
use BetterFuturesStudio\FilamentLocalLogins\Concerns\HasLocalLogins;
use Filament\Pages\Auth\Login;

class YourCustomLoginPage extends Login
{
    use HasLocalLogins;
}
```

In your Filament panel provider, typically `AdminPanelProvider`, you need to register the plugin:

```
use BetterFuturesStudio\FilamentLocalLogins\LocalLogins;
...
$panel->plugin(new LocalLogins());
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Karim Ali](https://github.com/KarimAlii)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance65

Regular maintenance activity

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 59.5% 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 ~94 days

Recently: every ~116 days

Total

6

Last Release

372d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ed4f5b0d5d2c50ef0fdb7cf925f10387861cc9913b1fdaf384ecd3bdd312c8f?d=identicon)[AbdelElrafa](/maintainers/AbdelElrafa)

---

Top Contributors

[![KarimAlii](https://avatars.githubusercontent.com/u/92182249?v=4)](https://github.com/KarimAlii "KarimAlii (44 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![AbdelElrafa](https://avatars.githubusercontent.com/u/7809177?v=4)](https://github.com/AbdelElrafa "AbdelElrafa (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")[![sidis405](https://avatars.githubusercontent.com/u/844961?v=4)](https://github.com/sidis405 "sidis405 (3 commits)")[![leek](https://avatars.githubusercontent.com/u/60204?v=4)](https://github.com/leek "leek (1 commits)")[![marco-introini](https://avatars.githubusercontent.com/u/89445565?v=4)](https://github.com/marco-introini "marco-introini (1 commits)")

---

Tags

laravelbetter-futures-studiofilament-local-logins

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/better-futures-studio-filament-local-logins/health.svg)

```
[![Health](https://phpackages.com/badges/better-futures-studio-filament-local-logins/health.svg)](https://phpackages.com/packages/better-futures-studio-filament-local-logins)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)

PHPackages © 2026

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