{"id":34795836,"url":"https://github.com/hennest/two-factor","last_synced_at":"2026-04-27T19:02:44.447Z","repository":{"id":253535430,"uuid":"843774841","full_name":"Hennest/two-factor","owner":"Hennest","description":"Two-Factor Authentication for Laravel","archived":false,"fork":false,"pushed_at":"2024-08-28T09:03:24.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-28T10:27:26.048Z","etag":null,"topics":["authentication","laravel","laravel-auth","laravel-authentication","two-factor","two-factor-auth","two-factor-authentication"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hennest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T11:33:43.000Z","updated_at":"2024-08-28T09:03:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f4b4464-f7a5-4725-b837-08102c88c98a","html_url":"https://github.com/Hennest/two-factor","commit_stats":null,"previous_names":["hennest/two-factor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hennest/two-factor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennest%2Ftwo-factor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennest%2Ftwo-factor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennest%2Ftwo-factor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennest%2Ftwo-factor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hennest","download_url":"https://codeload.github.com/Hennest/two-factor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hennest%2Ftwo-factor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32350243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["authentication","laravel","laravel-auth","laravel-authentication","two-factor","two-factor-auth","two-factor-authentication"],"created_at":"2025-12-25T10:46:55.881Z","updated_at":"2026-04-27T19:02:44.442Z","avatar_url":"https://github.com/Hennest.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Two-Factor Authentication\n\nThis package provides a robust two-factor authentication (2FA) solution for Laravel applications using Google Authenticator.\n\n## Installation\n\nInstall the package via Composer:\n\n```bash\ncomposer require hennest/two-factor\n```\n\n## Configuration\n\nPublish the configuration file:\n\n```bash\nphp artisan vendor:publish --tag=two-factor-config\n```\n\nThis will create a `config/two-factor.php` file. Adjust the settings as needed.\n\n## Database Migrations\n\nPublish and run the migrations:\n\n```bash\nphp artisan vendor:publish --tag=two-factor-migrations\nphp artisan migrate\n```\n\n## Usage\n\n### Setup\n\n1. Add the `HasTwoFactorAuthentication` trait to your User model:\n\n```php\nuse Hennest\\TwoFactor\\Traits\\HasTwoFactorAuthentication;\n\nclass User extends Authenticatable\n{\n    use HasTwoFactorAuthentication;\n    \n    // ...\n}\n```\n\n## Customization\n\n### Views\n\nPublish the views to customize them:\n\n```bash\nphp artisan vendor:publish --tag=two-factor-views\n```\n\n### Translations\n\nPublish the language files to customize messages:\n\n```bash\nphp artisan vendor:publish --tag=two-factor-lang\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis library is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennest%2Ftwo-factor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhennest%2Ftwo-factor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennest%2Ftwo-factor/lists"}