PHPackages                             nojimage/cakephp-login-attempts - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nojimage/cakephp-login-attempts

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

nojimage/cakephp-login-attempts
===============================

LoginAttempts plugin for CakePHP

v3.2.0(3mo ago)614.4k↓33.3%2MITPHPPHP ^8.1CI passing

Since Jun 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/nojimage/cakephp-login-attempts)[ Packagist](https://packagist.org/packages/nojimage/cakephp-login-attempts)[ RSS](/packages/nojimage-cakephp-login-attempts/feed)WikiDiscussions cake5 Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (16)Used By (0)

LoginAttempts plugin for CakePHP
================================

[](#loginattempts-plugin-for-cakephp)

 [ ![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265) ](LICENSE.txt) [ ![Build Status](https://camo.githubusercontent.com/0fb8d8e0de4ec9c0143a9d13f11f9fc1997ab9031dd26b8e534f6ad915bbe296/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f6a696d6167652f63616b657068702d6c6f67696e2d617474656d7074732f63692e796d6c3f7374796c653d666c61742d737175617265) ](https://github.com/nojimage/cakephp-login-attempts/actions) [ ![Codecov](https://camo.githubusercontent.com/98fa4c8ae28b78f36eff5f5657e7a5b17f2a5da5b7aaee87ed22e30c800da1f5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6e6f6a696d6167652f63616b657068702d6c6f67696e2d617474656d7074732e7376673f7374796c653d666c61742d737175617265) ](https://codecov.io/gh/nojimage/cakephp-login-attempts) [ ![Latest Stable Version](https://camo.githubusercontent.com/5fa08d4180232d349e2f64f81392fc6b01f2a0ed414609e14c13f0199b5fc0ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6a696d6167652f63616b657068702d6c6f67696e2d617474656d7074732e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/nojimage/cakephp-login-attempts)

Requirements
------------

[](#requirements)

- CakePHP &gt;= 5.0
- [CakePHP Authentication plugin](https://github.com/cakephp/authentication)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require nojimage/cakephp-login-attempts:^3.0

```

### Load plugin

[](#load-plugin)

Load the plugin by adding the following statement in your project's `src/Application.php`:

```
$this->addPlugin('LoginAttempts');

```

### Create table

[](#create-table)

Run migration command:

```
bin/cake migrations migrate -p LoginAttempts

```

### Usage

[](#usage)

Use `LoginAttempts.Form` authenticator instead of `Form`.

If you are using `Authentication` plugin:

```
        $service->loadAuthenticator('LoginAttempts.Form', [
            'fields' => ['username' => 'email'],
            'attemptLimit' => 5,
            'attemptDuration' => '+5 minutes',
        ]);

```

### LoginAttempts.Form Options

[](#loginattemptsform-options)

#### `attemptLimit`

[](#attemptlimit)

If the number of login failures exceeds `attemptLimit` during `attemptDuration`, the user's login is not permitted.

default: `5`

#### `attemptDuration`

[](#attemptduration)

If the number of login failures exceeds `attemptLimit` during `attemptDuration`, the user's login is not permitted.

default: `'+5 minutes'`

#### `attemptAction`

[](#attemptaction)

The number of attempts is stored separately for this key. Use when there are multiple login forms and you want to set restrictions separately.

default: `'login'`

#### `attemptsStorageModel`

[](#attemptsstoragemodel)

A model used for logging login failures and checking the count of failed login attempts.

default: `'LoginAttempts.Attempts'`

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 74.5% 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 ~316 days

Recently: every ~182 days

Total

11

Last Release

94d ago

Major Versions

v1.3.0 → v2.0.02022-12-02

v2.1.0 → v3.0.12024-02-09

PHP version history (4 changes)v1.0.1PHP &gt;=5.4.16

v1.1.0PHP &gt;=5.6

v2.0.0PHP ^7.2 || ^8.0

v3.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3fe494e51e33958f5c8079669fd036dfee4c2e6b11f85f2249ba36c371986e3?d=identicon)[nojimage](/maintainers/nojimage)

---

Top Contributors

[![nojimage](https://avatars.githubusercontent.com/u/100564?v=4)](https://github.com/nojimage "nojimage (73 commits)")[![nishimura-d](https://avatars.githubusercontent.com/u/1948725?v=4)](https://github.com/nishimura-d "nishimura-d (24 commits)")[![elastic-inc](https://avatars.githubusercontent.com/u/276172?v=4)](https://github.com/elastic-inc "elastic-inc (1 commits)")

---

Tags

authenticateauthenticationcakephpcakephp-pluginloginattempts-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nojimage-cakephp-login-attempts/health.svg)

```
[![Health](https://phpackages.com/badges/nojimage-cakephp-login-attempts/health.svg)](https://phpackages.com/packages/nojimage-cakephp-login-attempts)
```

###  Alternatives

[cakedc/users

Users Plugin for CakePHP

524897.0k16](/packages/cakedc-users)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)[admad/cakephp-jwt-auth

CakePHP plugin for authenticating using JSON Web Tokens

160680.3k8](/packages/admad-cakephp-jwt-auth)[markstory/acl_extras

Additional tools for managing DB ACL in CakePHP applications.

155311.0k](/packages/markstory-acl-extras)[andrej-griniuk/cakephp-two-factor-auth

CakePHP auth component and provider fot two-factor authentication

38102.9k](/packages/andrej-griniuk-cakephp-two-factor-auth)[admad/cakephp-social-auth

A CakePHP plugin which allows you to authenticate using social providers like Facebook/Google/Twitter etc.

51298.3k1](/packages/admad-cakephp-social-auth)

PHPackages © 2026

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