Download the PHP package lara-care/account-lockout without Composer
On this page you can find all versions of the php package lara-care/account-lockout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lara-care/account-lockout
More information about lara-care/account-lockout
Files in lara-care/account-lockout
Package account-lockout
Short Description Account lockout protection, event tracking, and self-service recovery for Laravel.
License MIT
Informations about the package account-lockout
LaraCare Account Lockout
A robust account lockout and progressive cooldown penalty manager for Laravel applications. Protect your authentication routes against brute-force attacks with configurable attempt thresholds, progressive lockouts, and event dispatching.
Features
- 🔒 Threshold-based Locking: Temporarily lock accounts or IP addresses after a specified number of failed login attempts.
- ⏱️ Progressive Cooldowns: Apply escalating lockout durations for repeat offenders (e.g., 15 mins → 60 mins → 24 hours).
- 📢 Event Driven: Dispatches
AccountLockedandAccountUnlockedevents for audit logs or notifications. - 🔔 Built-in Notifications: Automatically trigger security alert emails/notifications when lockouts occur.
- 🛠️ Simple API: Intuitive interface for recording failed attempts, checking status, and manually unlocking accounts.
Installation
You can install the package via Composer:
Publish the configuration file:
This will create a config/account-lockout.php file in your application root:
Usage
Recording Failed Attempts & Checking Lockouts
Use the LockoutManager service inside your login controllers or authentication actions:
Events
The package fires the following events:
| Event | Description |
|---|---|
LaraCare\AccountLockout\Events\AccountLocked |
Dispatched when an account reaches the maximum failed attempts threshold. Contains $event->user and $event->unlocksAt. |
LaraCare\AccountLockout\Events\AccountUnlocked |
Dispatched when an account is manually unlocked or cleared. Contains $event->user. |
Testing
Run the test suite using PHPUnit:
License
The MIT License (MIT). Please see License File for more information.
All versions of account-lockout with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0
illuminate/auth Version ^10.0|^11.0