PHPackages                             webbingbrasil/filament-2fa - 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. webbingbrasil/filament-2fa

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

webbingbrasil/filament-2fa
==========================

A 2FA plugin for filament.

v1.0.0(3y ago)4740.7k↓29.6%15[6 issues](https://github.com/webbingbrasil/filament-2fa/issues)[2 PRs](https://github.com/webbingbrasil/filament-2fa/pulls)MITPHPPHP ^8.0

Since Apr 6Pushed 1y ago4 watchersCompare

[ Source](https://github.com/webbingbrasil/filament-2fa)[ Packagist](https://packagist.org/packages/webbingbrasil/filament-2fa)[ Docs](https://github.com/webbingbrasil/filament-2fa)[ RSS](/packages/webbingbrasil-filament-2fa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (8)Used By (0)

Filament 2FA Plugin
===================

[](#filament-2fa-plugin)

A Two Factor Authentication plugin for Filament

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

[](#installation)

1. Install the package via composer (requires filament &gt;= 2.10.40)

```
composer require webbingbrasil/filament-2fa
```

2. Publish assets and run migrations

```
php artisan vendor:publish --tag="filament-2fa-migrations"
php artisan migrate
```

Optionally, you can publish config or views:

```
php artisan vendor:publish --tag="filament-2fa-config"
php artisan vendor:publish --tag="filament-2fa-views"
```

3. Add `\Webbingbrasil\FilamentTwoFactor\TwoFactorAuthenticatable` trait to your user model.
4. Update the `config/filament.php` to point to the Two Factor Login::class.

```
"auth" => [
    "guard" => env("FILAMENT_AUTH_GUARD", "web"),
    "pages" => [
        "login" =>
            \Webbingbrasil\FilamentTwoFactor\Http\Livewire\Auth\Login::class,
    ],
],
```

Integrate With Custom Profile Page
----------------------------------

[](#integrate-with-custom-profile-page)

This package has a component for two-factor setup that can be easily added to a profile page, like the one for [filament-jetstream-theme](https://github.com/webbingbrasil/filament-jetstream-theme).

Create a view with the `` component like the example below:

```
// resources/views/partials/2fa-section.blade.php

        {{ __('filament-2fa::two-factor.title') }}

        {{ __('filament-2fa::two-factor.description') }}

```

Then add the view to your profile page using render hook:

```
## in Service Provider file
public function boot()
{
    Filament::registerRenderHook(
        'filament-jetstream.profile-page.end',
        fn (): View => view('partials.2fa-section'),
    );
}
```

Screenshots
-----------

[](#screenshots)

[![Two Factor Page](./images/two-factor-page.jpeg)](./images/two-factor-page.jpeg)[![Confirm Password](./images/confirm-password.jpeg)](./images/confirm-password.jpeg)[![Finishing enable](./images/finishing-enable.jpeg)](./images/finishing-enable.jpeg)[![Recovery codes](./images/recovery-codes.jpeg)](./images/recovery-codes.jpeg)[![Enabled](./images/enabled.jpeg)](./images/enabled.jpeg)[![Challenge](./images/challenge.jpeg)](./images/challenge.jpeg)[![Breezy](./images/breezy.png)](./images/breezy.png)

Credits
-------

[](#credits)

- [Danilo Andrade](https://github.com/dmandrade)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~58 days

Recently: every ~70 days

Total

7

Last Release

1155d ago

Major Versions

v0.2.3 → 1.x-dev2022-06-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/46c152ad4f73337f281add1d284040cf3ce36c8e16987c4668cc213f2bb90826?d=identicon)[dmandrade](/maintainers/dmandrade)

---

Top Contributors

[![dmandrade](https://avatars.githubusercontent.com/u/7275012?v=4)](https://github.com/dmandrade "dmandrade (15 commits)")[![koupisbean](https://avatars.githubusercontent.com/u/44702609?v=4)](https://github.com/koupisbean "koupisbean (1 commits)")[![sh4msi](https://avatars.githubusercontent.com/u/6229984?v=4)](https://github.com/sh4msi "sh4msi (1 commits)")

---

Tags

laravel2fafilament

### Embed Badge

![Health badge](/badges/webbingbrasil-filament-2fa/health.svg)

```
[![Health](https://phpackages.com/badges/webbingbrasil-filament-2fa/health.svg)](https://phpackages.com/packages/webbingbrasil-filament-2fa)
```

###  Alternatives

[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

5925.8k](/packages/marcelweidum-filament-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3911.9k](/packages/rawilk-profile-filament-plugin)[caresome/filament-auth-designer

Transform Filament's default auth pages into stunning, brand-ready experiences

3916.8k2](/packages/caresome-filament-auth-designer)

PHPackages © 2026

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