nalyar-ulryck / two-factor-auth
A Laravel package for two-factor authentication
1.1.0
2025-04-25 18:37 UTC
Requires
- php: ^8.0
- bacon/bacon-qr-code: ^3.0
- laravel/framework: ^9.0|^10.0|^11.0|^12.0
- pragmarx/google2fa-laravel: ^2.2
README
A Laravel package that provides a simple implementation of Two Factor Authentication (2FA) using OTP (One-Time Password).
Features
- Generate and validate OTP codes.
- Configurable OTP length and expiration time.
- Easily integrable with existing Laravel projects.
- Customizable views and routes.
Installation
1. Require the Package
Add the repository path to your project's composer.json
:
"repositories": [ { "type": "path", "url": "./packages/your-vendor-name/two-factor-auth" } ]