# Laragear/TwoFactor

> On-premises TOTP two-factor authentication for Laravel applications

Navigation: [Security](category/security.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/Laragear/TwoFactor
- HTML: https://awesomeopensource.dev/project/laragear-twofactor
- Website: https://github.com/sponsors/DarkGhostHunter
- License: MIT
- Language: PHP
- stars: 343
- Topics: 2fa, 2factor, authentication, laravel, php, two-factor, two-factor-authentication
- Activity score: 2.1/5 (Slowing down)
- Last commit (any branch): 2026-03-04
- Last release: v4.0.0 2026-03-04

## Description

Laragear TwoFactor adds six-digit TOTP authentication to Laravel logins without external services. The package installs its contract, migration, views and translations through an Artisan command, then wraps authentication with an Auth2FA attempt call so users are asked for a code after their password. It requires PHP 8.3 and Laravel 12 or newer and is compatible with Laravel Octane.

## Maintenance activity

- Recency: 14% (weight 40%) — last commit: 254 days ago
- Commit volume: 9% (weight 25%)
- Releases: 37% (weight 25%) — last release: 254 days ago
- Bug fixes: 100% (weight 10%)
- Commits: 0 / 90d, 2 / 365d

## Similar projects

- [aquasecurity/trivy](aquasecurity-trivy.md): Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more · Activity score 5.0/5 (Thriving)
- [wazuh/wazuh](wazuh-wazuh.md): The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads. · Activity score 5.0/5 (Thriving)
- [anchore/grype](anchore-grype.md): Scans container images, filesystems and SBOMs for known vulnerabilities · Activity score 5.0/5 (Thriving)
- [greenbone/openvas-scanner](greenbone-openvas-scanner.md): Greenbone Community Edition scan engine with a continuously updated test feed · Activity score 5.0/5 (Thriving)
- [crowdsecurity/crowdsec](crowdsecurity-crowdsec.md): the open-source and participative IPS able to analyze visitor behavior & provide an adapted response to all kinds of attacks. · Activity score 4.9/5 (Thriving)
- [projectdiscovery/nuclei](projectdiscovery-nuclei.md): YAML template-based vulnerability scanner for HTTP, DNS, TCP and code targets · Activity score 4.8/5 (Thriving)
