nalyar-ulryck / two-factor-auth
A Laravel package for two-factor authentication
Installs: 79
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nalyar-ulryck/two-factor-auth
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" } ]