PHPackages                             priondevelopment/brute - 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. priondevelopment/brute

ActiveLibrary[Security](/categories/security)

priondevelopment/brute
======================

Brute force enforcement and monitoring.

v1.0.0-alpha.1(5y ago)01MITPHPPHP ^7.3.0

Since May 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/prion-development/brute)[ Packagist](https://packagist.org/packages/priondevelopment/brute)[ Docs](https://priondevelopment.com/packages/brute)[ RSS](/packages/priondevelopment-brute/feed)WikiDiscussions master Synced 6d ago

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

Prion Brute (Lumen/Laraval 5 Package)
=====================================

[](#prion-brute-lumenlaraval-5-package)

Prion Brute monitors and enforces brute force attempts.

Tested on Lumen 7

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

[](#installation)

`composer require "prion-development/brute:5.6.*"`

In config/app.php, add the following provider: `PrionDevelopment\Providers\BruteProviderService::class`

Automated Setup
---------------

[](#automated-setup)

Run the following command for automated setup. `php artisan prionbrute:setup`

Clear or reset your Laravel config cache. `php artisan config:clear``php artisan config:cache`

License
-------

[](#license)

Prion Brute is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

Check for Lock
--------------

[](#check-for-lock)

Check and see if $key is blocked: `Brute::isLocked($key);`

Unlock $key: `Brute::unlock($key);`

Lock $key: This will only lock a key if the number of attempts is great than or equal to the maximum. `Brute::lock($key);`

Force a lock on $key: `Brute::lock($key, true);`

Manage Attempts
---------------

[](#manage-attempts)

To add an attempt: If the number of tries matches or is greater than the max number of tries, we will block $key. `Brute::attempt($key);`

Attempts on $key: `Brute::attempts($key);`

Remove an attempt on $key: `Brute::removeAttempt($key)`

Remove "x" attempts on $key: `Brute::removeAttempt($key, x)`

Maximum number of attempts on $key: `Brute::max($key);`

Remove all attempts and blocks on a key `Brute::clear($key);`

How Brute works
---------------

[](#how-brute-works)

You can push a string into brute as an "attempt". An attempt records a UTC timestamp in the default cache database using a unique key. When the number of attempts is greater than the set limit, the key is locked.

We automatically expire attempts if the timestamp is outside of the expiration config.

Running Tests
-------------

[](#running-tests)

1. Make sure composer packages are installed (`composer update`)
2. vendor/bin/phpunit

Check for Lock
--------------

[](#check-for-lock-1)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2181d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7097000?v=4)[Prion Development](/maintainers/priondevelopment)[@priondevelopment](https://github.com/priondevelopment)

---

Top Contributors

[![brandonbest](https://avatars.githubusercontent.com/u/7060471?v=4)](https://github.com/brandonbest "brandonbest (2 commits)")

### Embed Badge

![Health badge](/badges/priondevelopment-brute/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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