darkghosthunter/laraguard
Laraguard brings TOTP-based two-factor authentication to Laravel. It offers a dedicated auth guard, middleware, recovery codes, QR-code onboarding, and events, making it easy to secure logins with Google Authenticator-compatible codes.
Architecture fit
TwoFactorAuthentication contract with a default implementation), so the call sites are swappable — but the implementation you would actually depend on is the archived one.Integration feasibility
laravel/framework/illuminate/* and potentially on Carbon and the QR-code dependency.Technical risk, ranked
APP_KEY rotation.Key questions
Stack fit
Migration path — three viable options
packages/ or a private VCS, widen constraints, add test coverage and CI, assign an owner, and register it as internal code. This is the honest cost of adopting an archived package.pragmarx/google2fa-laravel , or a passkey-capable option. Default recommendation unless A's constraints dominate and the timeline is short.Compatibility checks before committing
auth and before protected routes, and must not interfere with API token auth.Sequencing
Maintenance
Support
Scaling
Failure modes to design for
APP_KEY rotation → encrypted TOTP secrets unreadable, mass lockout. Add to the key-rotation runbook and test it.Ramp-up
Bottom line. Technically a clean fit for the Laravel idiom and cheap to run, but the archived status makes it a poor default for a security-critical surface. Prefer a maintained alternative or Fortify's built-in 2FA. Adopt laraguard only with an owned fork, a completed security review, a named maintainer, and a documented exit plan.
How can I help you explore Laravel packages today?