PHPackages                             irfa/lockout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. irfa/lockout

ActivePackage[Security](/categories/security)

irfa/lockout
============

"Lock account if failed login"

v1.0.3(5y ago)3123MITPHPPHP &gt;=7.0CI failing

Since Jun 27Pushed 5y ago3 watchersCompare

[ Source](https://github.com/irfaardy/lockout-account)[ Packagist](https://packagist.org/packages/irfa/lockout)[ RSS](/packages/irfa-lockout/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

🔒 **JSON Lockout Account for Laravel**
======================================

[](#-json-lockout-account--for--laravel)

[![Code Climate](https://camo.githubusercontent.com/2506059245c7814d04e1d1b7767d92fae725f5f53eeaef3794dc72912ec22ef2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f69726661617264792f6c6f636b6f75742d6163636f756e742f6261646765732f6770612e737667)](https://codeclimate.com/github/irfaardy/lockout-account)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/97d05f691c3e904e138d7bbd9c07a973778b53ec19a7bdf355969a931c6b6a02/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69726661617264792f6c6f636b6f75742d6163636f756e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/irfaardy/lockout-account/?branch=master) [![Build Status](https://camo.githubusercontent.com/f7b256f7b514861c9807fbe8af192a9f182941fb12b74aa4b7855307e1b1520b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69726661617264792f6c6f636b6f75742d6163636f756e742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/irfaardy/lockout-account/build-status/master) [![Support me](https://camo.githubusercontent.com/77f29148bd78dc2f56f42dc05f429e32fa7f45a323cf02468938c4032fe73292/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537570706f72742d4275792532306d6525323061253230636f666665652d79656c6c6f772e7376673f7374796c653d666c61742d737175617265)](https://www.buymeacoffee.com/OBaAofN) [![Latest Stable Version](https://camo.githubusercontent.com/be208e11e4c2d318d8d907ae2a163f62221bd5c493b2b7c84f4ee0f7a40be5b6/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f697266612f6c6f636b6f75742f6c61746573743f6c6162656c3d56657273696f6e)](//packagist.org/packages/irfa/lockout) [![PHP Composer](https://github.com/irfaardy/lockout-account/workflows/PHP%20Composer/badge.svg?branch=master)](https://github.com/irfaardy/lockout-account/workflows/PHP%20Composer/badge.svg?branch=master)[![Buy Me A Coffee](https://camo.githubusercontent.com/6fa04566eafad07c2855eed9aa6500f8e07736eab65d13450d603194f54bc181/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f6c61746f2d7265642e706e67)](https://www.buymeacoffee.com/OBaAofN)

[![Logo](https://repository-images.githubusercontent.com/261060616/13331f80-c9e6-11ea-8e73-73ad96ceb0a6)](https://repository-images.githubusercontent.com/261060616/13331f80-c9e6-11ea-8e73-73ad96ceb0a6)

This package is useful for locking an account if someone tries to log into your account, this package can be implemented into the admin dashboard login, information system, cloud, etc. ### 🛠️ Installation with Composer

[](#️-installation-with-composer-)

```
composer require irfa/lockout
```

> You can get Composer [here](https://getcomposer.org/download/)

---

🛠️ Laravel Setup
-----------------

[](#️-laravel-setup-)

### 1. Add to config/app.php

[](#1-add-to-configappphp)

```
'providers' => [
      	 ....
         Irfa\Lockout\LockoutAccountServiceProvider::class,
     ];
```

### 2. Add to config/app.php

[](#2-add-to-configappphp)

```
'aliases' => [
         ....
    	'Lockout' => Irfa\Lockout\Facades\Lockout::class,
],
```

3. Publish Vendor
-----------------

[](#3-publish-vendor)

```
php artisan vendor:publish --tag=lockout-account

```

Open .env file and add this line (optional)

```
....
LOGIN_ATTEMPS=3
LOGGING=true

```

Usage:
------

[](#usage)

---

How to Contributing
-------------------

[](#how-to-contributing)

1. Fork it ()
2. Commit your changes (`git commit -m 'Add some Feature'`)
3. Push to the branch (`git push origin version`)
4. Create a new Pull Request

---

Issue
-----

[](#issue)

If you found issues or bug please create new issues here

---

**LICENSE**
[![GitHub license](https://camo.githubusercontent.com/98829a5a15bfe88ba1bf50f545a2f34e8ef0bdf1eac2952072fe0f472f193554/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69726661617264792f6c6f636b6f75742d6163636f756e743f7374796c653d666f722d7468652d6261646765)](https://github.com/irfaardy/lockout-account/blob/master/LICENSE)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

2143d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/371ddbe81fee5daf2246e1e6cea85792b76f7042ec9232c36e84870de4b2a37b?d=identicon)[irfaardy](/maintainers/irfaardy)

---

Top Contributors

[![irfaardy](https://avatars.githubusercontent.com/u/49023326?v=4)](https://github.com/irfaardy "irfaardy (77 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (4 commits)")

---

Tags

blockjsonkuncilaravellaravel-5-packagelaravel-frameworklaravel-packagelock-accountlockoutspengunciansecuritylaravelsecurityaccountlockoutlogin lockaccount lockedattemps loginaccount lock

### Embed Badge

![Health badge](/badges/irfa-lockout/health.svg)

```
[![Health](https://phpackages.com/badges/irfa-lockout/health.svg)](https://phpackages.com/packages/irfa-lockout)
```

###  Alternatives

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)[glaivepro/hidevara

Laravel millipackage that hides variables from getting dumped in the Whoops page when your app crashes.

27303.9k](/packages/glaivepro-hidevara)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
