{"id":22226214,"url":"https://github.com/worksome/laravel-mfa","last_synced_at":"2026-01-06T12:12:12.678Z","repository":{"id":59829326,"uuid":"511120671","full_name":"worksome/laravel-mfa","owner":"worksome","description":"A driver-based multifactor authentication package for Laravel","archived":false,"fork":false,"pushed_at":"2024-11-07T11:55:00.000Z","size":155,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-15T06:12:08.713Z","etag":null,"topics":["laravel","mfa"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"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/worksome.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":"worksome"}},"created_at":"2022-07-06T12:05:31.000Z","updated_at":"2024-11-07T11:55:03.000Z","dependencies_parsed_at":"2024-02-27T12:28:27.421Z","dependency_job_id":"8a20f18d-f60e-4629-aa29-84372228b1a8","html_url":"https://github.com/worksome/laravel-mfa","commit_stats":{"total_commits":78,"total_committers":3,"mean_commits":26.0,"dds":"0.038461538461538436","last_synced_commit":"6a213d322b51b75d2853ea44a989f89001f4a237"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":"worksome/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Flaravel-mfa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Flaravel-mfa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Flaravel-mfa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worksome%2Flaravel-mfa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worksome","download_url":"https://codeload.github.com/worksome/laravel-mfa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227826016,"owners_count":17825408,"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":["laravel","mfa"],"created_at":"2024-12-03T00:24:04.133Z","updated_at":"2026-01-06T12:12:12.673Z","avatar_url":"https://github.com/worksome.png","language":"PHP","readme":"# Laravel Multi-Factor Authentication\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/worksome/laravel-mfa.svg?style=flat-square)](https://packagist.org/packages/worksome/laravel-mfa)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/worksome/laravel-mfa/tests.yml?style=flat-square\u0026label=tests\u0026branch=main)](https://github.com/worksome/laravel-mfa/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/worksome/laravel-mfa/static.yml?style=flat-square\u0026label=code%20style\u0026branch=main)](https://github.com/worksome/laravel-mfa/actions?query=workflow%3A\"Static+Analysis\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/worksome/laravel-mfa.svg?style=flat-square)](https://packagist.org/packages/worksome/laravel-mfa)\n\nA driver-based multi-factor authentication package for Laravel\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require worksome/laravel-mfa\n```\n\nYou can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"mfa-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"mfa-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n\n    'user' =\u003e \\App\\Models\\User::class,\n\n    'channels' =\u003e [\n\n        \\Worksome\\MultiFactorAuth\\Enums\\Channel::Email-\u003evalue =\u003e [\n            'driver' =\u003e env('MFA_EMAIL_DRIVER', 'null'),\n        ],\n\n        \\Worksome\\MultiFactorAuth\\Enums\\Channel::Sms-\u003evalue =\u003e [\n            'driver' =\u003e env('MFA_SMS_DRIVER', 'null'),\n        ],\n\n        \\Worksome\\MultiFactorAuth\\Enums\\Channel::Totp-\u003evalue =\u003e [\n            'driver' =\u003e env('MFA_TOTP_DRIVER', 'null'),\n        ],\n\n    ],\n    \n    // ...\n\n];\n```\n\nFor the full configuration, see [the `config/mfa.php` file](config/mfa.php).\n\n## Usage\n\n```php\n$twoFactorAuth = new \\Worksome\\MultiFactorAuth\\MultiFactorAuth();\n$response = $twoFactorAuth-\u003esms-\u003emake(\n    new \\Worksome\\MultiFactorAuth\\DataValues\\Sms\\E164PhoneNumber('+14155552671'),\n);\n\ndd($response);\n```\n\n### The `about` command\n\nThis package adds information to the `artisan about` command. This information can be disabled by setting\nthe `mfa.features.about_command` configuration to `false`.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [GitHub Releases](https://github.com/worksome/laravel-mfa/releases) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Owen Voke](https://github.com/owenvoke)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":["https://github.com/sponsors/worksome"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworksome%2Flaravel-mfa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworksome%2Flaravel-mfa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworksome%2Flaravel-mfa/lists"}