nalyar-ulryck/two-factor-auth

A Laravel package for two-factor authentication

1.1.0 2025-04-25 18:37 UTC

This package is auto-updated.

Last update: 2025-05-30 21:11:14 UTC


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"
    }
]