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

ActiveLibrary

tfsthiagobr98/filament-2fa
==========================

A 2FA plugin for filament.

2.1.1(1y ago)12.3k—0%MITPHPPHP ^8.3

Since Dec 9Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (6)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 tfsthiagobr98/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 `\TFSThiagoBR98\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" =>
            \TFSThiagoBR98\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/tfsthiagobr98/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

Maintenance45

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 63.4% 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 ~206 days

Total

5

Last Release

425d ago

Major Versions

0.x-dev → 1.0.02023-10-24

1.0.0 → 2.0.02024-03-30

PHP version history (3 changes)0.x-devPHP ^8.0

2.0.0PHP ^8.2

2.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f8b7219158e12dabe52f2b5cdbb3f20ddd36cebc2416ce01e7517237203bd91?d=identicon)[tfsthiagobr98](/maintainers/tfsthiagobr98)

---

Top Contributors

[![TFSThiagoBR98](https://avatars.githubusercontent.com/u/16943898?v=4)](https://github.com/TFSThiagoBR98 "TFSThiagoBR98 (26 commits)")[![dmandrade](https://avatars.githubusercontent.com/u/7275012?v=4)](https://github.com/dmandrade "dmandrade (14 commits)")[![koupisbean](https://avatars.githubusercontent.com/u/44702609?v=4)](https://github.com/koupisbean "koupisbean (1 commits)")

---

Tags

laravel2fafilament

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

81158.7k4](/packages/stephenjude-filament-two-factor-authentication)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

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

A full-featured file manager package for Laravel and Filament v5 with dual operating modes, drag-and-drop uploads, S3/MinIO support, and comprehensive security features.

718.5k1](/packages/mwguerra-filemanager)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

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