Download the PHP package artisanpack-ui/security-auth without Composer
On this page you can find all versions of the php package artisanpack-ui/security-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artisanpack-ui/security-auth
More information about artisanpack-ui/security-auth
Files in artisanpack-ui/security-auth
Package security-auth
Short Description Authentication security for Laravel — two-factor authentication (email/TOTP), password complexity and breach checking, account lockout, and session management.
License MIT
Informations about the package security-auth
ArtisanPack UI — Security Auth
Authentication security for Laravel: two-factor authentication (email + TOTP), password complexity rules, HaveIBeenPwned breach checking, password history, account lockout, advanced session management, and step-up authentication.
This package is part of the ArtisanPack UI Security 2.0 split — the auth-focused features previously bundled inside artisanpack-ui/security (1.x) live here in 2.0+.
Features
- Two-factor authentication —
TwoFactorFacade withEmailProvider(default) and Google2FA-backed TOTP. TraitTwoFactorAuthenticatablefor User models.TwoFactorCodeMailablefor email delivery. - Password security (
PasswordSecurityService) — complexity rules, breach checking via HaveIBeenPwned, history enforcement, expiration tracking. Drop-inRuleclasses:PasswordComplexity,NotCompromised,PasswordHistoryRule,PasswordPolicy. - Account lockout (
AccountLockoutManager) — user-level and IP-level lockouts with configurable durations, failed-attempt tracking, lockout history. - Advanced session management (
AdvancedSessionManager) — session bindings (IP / UA), concurrent session limits, session rotation, programmatic termination. - Middleware —
two-factor,password.policy,check.lockout,step-up. - Livewire components —
PasswordStrengthMeter,AccountLockoutStatus,SessionManager,StepUpAuthenticationModalwith shipped Blade views (plain HTML + Tailwind, nolivewire-ui-componentsdep). - Eloquent models —
AccountLockout,PasswordHistory,UserSession. - Migrations — adds 2FA columns to
users, plus tables for password history, user sessions, and account lockouts. - Artisan command —
security:lockout(manage account lockouts: list, lock, unlock, clear). - Events —
AccountLocked.
Installation
Note: the bundled migrations assume the standard Laravel
userstable exists. If you're adding this package to an app without one, run Laravel's default migrations first.
(Optional) Publish the config:
Quick start
Enable 2FA on a User model
Validate a password with full policy
PasswordPolicy is a composite that runs complexity + breach check + history checks together. Use individual rules (PasswordComplexity, NotCompromised, PasswordHistoryRule) for finer control.
Apply middleware
Mount a Livewire component
The four shipped Blade views render in plain HTML + Tailwind. Publish + override to customize.
Documentation
- Documentation home
- Getting started
- Installation
- Usage
- Advanced
- FAQ
- Troubleshooting
- Changelog
Requirements
- PHP 8.2+
- Laravel 10 / 11 / 12
pragmarx/google2fa-laravel: ^2.3(pulled in automatically) for TOTP 2FA
Sibling packages
| Package | Scope |
|---|---|
artisanpack-ui/security-full |
Meta-package — pulls in the full security suite (all six packages below) in a single require |
artisanpack-ui/security |
Core: input sanitization, escaping, CSP, security headers |
artisanpack-ui/security-advanced-auth |
WebAuthn, SSO, social login, biometric, device fingerprinting |
artisanpack-ui/rbac |
Roles, permissions, Gate integration |
artisanpack-ui/secure-uploads |
File validation, malware scanning, signed-URL serving |
artisanpack-ui/security-analytics |
Event logging, anomaly detection, SIEM, dashboards |
artisanpack-ui/compliance |
GDPR / CCPA / LGPD compliance tools |
License
MIT — see LICENSE.
Contributing
Please read the contributing guidelines before opening an issue or PR.
All versions of security-auth with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
artisanpack-ui/core Version ^1.0
pragmarx/google2fa-laravel Version ^2.3