laraditz/user-security
Adds user security features for Laravel/Lumen: security PIN, mnemonic key validation/storage, and 2FA support. Includes a UserSecurable trait, SecureUser facade, and configurable hashing key (LUS_KEY) for one-way encryption.
Adopt When:
laravel/breeze, laravel/jetstream, or custom auth).Look Elsewhere When:
php-pinpoint/2fa or paragonie/google2fa."This package lets us add multi-layered security (2FA + security pins + mnemonic keys) to our user accounts with minimal dev effort. It’s a cost-effective way to meet compliance needs (e.g., GDPR, SOC 2) and reduce fraud risk without hiring specialized security engineers. Since it’s MIT-licensed, we retain full control, and the implementation is faster than building from scratch—aligning with our [roadmap goal: secure 100% of admin users by Q3]."
Key Outcomes: ✅ Reduced risk of breaches via layered authentication. ✅ Faster delivery of security features (weeks vs. months). ✅ Lower TCO than proprietary MFA tools.
*"This Laravel package provides pre-built 2FA (TOTP), security pins, and mnemonic keys with minimal setup. It’s a drop-in solution for apps using Laravel’s auth system, requiring only:
Pros:
Cons:
Recommendation: Pilot with non-critical user segments first (e.g., test accounts) before rolling out to admins. Pair with monitoring for failed 2FA attempts to catch edge cases."*
Action Items:
How can I help you explore Laravel packages today?