{"id":23219184,"url":"https://github.com/solutionforest/filament-email-2fa","last_synced_at":"2025-08-19T08:32:50.756Z","repository":{"id":228750377,"uuid":"774812889","full_name":"solutionforest/filament-email-2fa","owner":"solutionforest","description":"This package seamlessly integrates two-factor authentication (2FA) into your Filament PHP applications using email verification codes. Enhance the security of your user accounts and protect sensitive data.","archived":false,"fork":false,"pushed_at":"2024-07-17T15:57:12.000Z","size":58,"stargazers_count":18,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-15T21:08:53.052Z","etag":null,"topics":["2fa","2fa-security","2factor","cms","filament-plugin","filamentphp","filamentphp-plugin","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solutionforest.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"solution-forest"}},"created_at":"2024-03-20T08:32:01.000Z","updated_at":"2024-09-23T13:21:33.000Z","dependencies_parsed_at":"2024-04-12T09:47:42.866Z","dependency_job_id":null,"html_url":"https://github.com/solutionforest/filament-email-2fa","commit_stats":null,"previous_names":["solutionforest/filament-email-2fa"],"tags_count":14,"template":false,"template_full_name":"filamentphp/plugin-skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2Ffilament-email-2fa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2Ffilament-email-2fa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2Ffilament-email-2fa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutionforest%2Ffilament-email-2fa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solutionforest","download_url":"https://codeload.github.com/solutionforest/filament-email-2fa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230340584,"owners_count":18211231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2fa","2fa-security","2factor","cms","filament-plugin","filamentphp","filamentphp-plugin","laravel"],"created_at":"2024-12-18T21:20:05.928Z","updated_at":"2024-12-18T21:20:06.478Z","avatar_url":"https://github.com/solutionforest.png","language":"PHP","readme":"# filament-email-2fa\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/solution-forest/filament-email-2fa.svg?style=flat-square)](https://packagist.org/packages/solution-forest/filament-email-2fa)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/solution-forest/filament-email-2fa/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/solution-forest/filament-email-2fa/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/solution-forest/filament-email-2fa/fix-php-code-styling.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/solution-forest/filament-email-2fa/actions?query=workflow%3A\"Fix+PHP+code+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/solution-forest/filament-email-2fa.svg?style=flat-square)](https://packagist.org/packages/solution-forest/filament-email-2fa)\n\n\n## Secure Your Filament Applications with Email-Based 2FA\n\nThis package seamlessly integrates two-factor authentication (2FA) into your Filament PHP applications using email verification codes. Enhance the security of your user accounts and protect sensitive data.\n\n![image](https://github.com/solutionforest/filament-email-2fa/assets/68211972/8fcefe16-c280-41f0-bc26-652f285b8975)\n\n\n### Key Features:\n\n- Easy Integration: Quickly add 2FA to your Filament projects with minimal configuration.\n- Email Verification: Users receive time-sensitive codes via email for secure login.\n- Customizable: Tailor the 2FA experience with configurable options (e.g., code expiry time).\n- Seamless User Experience: Provides a user-friendly interface for setting up and using 2FA.\n\n\n### How it Works:\n\n- Upon successful login, users are prompted to enter a verification code sent to their email address.\n- The package handles code generation, email delivery, and verification logic.\n- Once verified, users gain access to the protected Filament panel.\n\n### Ideal For:\n\nFilament applications handling sensitive user data.\nProjects requiring an extra layer of account security.\nDevelopers seeking a straightforward 2FA solution.\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require solution-forest/filament-email-2fa\n```\n\nYou can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-email-2fa-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-email-2fa-config\"\n```\n\nOptionally, you can publish the views using\n\n```bash\nphp artisan vendor:publish --tag=\"filament-email-2fa-views\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'code_table' =\u003e 'filament_email_2fa_codes',\n    'verify_table' =\u003e 'filament_email_2fa_verify',\n\n    'code_model' =\u003e \\Solutionforest\\FilamentEmail2fa\\Models\\TwoFaCode::class,\n    'verify_model' =\u003e \\Solutionforest\\FilamentEmail2fa\\Models\\TwoFaVerify::class,\n\n    'expiry_time_by_mins' =\u003e 10,\n\n    '2fa_page' =\u003e \\Solutionforest\\FilamentEmail2fa\\Pages\\TwoFactorAuth::class,\n    'login_success_page' =\u003e \\Solutionforest\\FilamentEmail2fa\\Pages\\LoginSuccessPage::class,\n];\n```\n\n## Adding the plugin to a panel\n\n```php\nuse Solutionforest\\FilamentEmail2fa\\FilamentEmail2faPlugin;\n\nreturn $panel\n        // ...\n        -\u003eplugin(FilamentEmail2faPlugin::make());\n```\n\n## Preparing your filament user class\n\nImplement the 'RequireTwoFALogin' interface and use the 'HasTwoFALogin' trait\n\n```php\nuse Solutionforest\\FilamentEmail2fa\\Interfaces\\RequireTwoFALogin;\nuse Solutionforest\\FilamentEmail2fa\\Trait\\HasTwoFALogin;\n\nclass FilamentUser extends Authenticatable implements FilamentUserContract,RequireTwoFALogin{\n    use HasTwoFALogin;\n}\n```\n\n","funding_links":["https://github.com/sponsors/solution-forest"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutionforest%2Ffilament-email-2fa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolutionforest%2Ffilament-email-2fa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutionforest%2Ffilament-email-2fa/lists"}