PHPackages                             think.studio/laravel-blocklist-check - 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. think.studio/laravel-blocklist-check

ActiveLibrary

think.studio/laravel-blocklist-check
====================================

Simple blocklist validator for laravel.

2.1.0(2y ago)017MITPHPPHP ^8.1

Since Sep 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-blocklist-check)[ Packagist](https://packagist.org/packages/think.studio/laravel-blocklist-check)[ Docs](https://github.com/dev-think-one/laravel-blocklist-check)[ RSS](/packages/thinkstudio-laravel-blocklist-check/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (4)Used By (0)

Laravel blocklist.
==================

[](#laravel-blocklist)

[![Packagist License](https://camo.githubusercontent.com/cb93da3c4b498e01fbd6845f55530deeb5e6648389413d421df93e9d81ad550c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d626c6f636b6c6973742d636865636b3f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/cb93da3c4b498e01fbd6845f55530deeb5e6648389413d421df93e9d81ad550c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d626c6f636b6c6973742d636865636b3f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/ffa2c4f9cdb0d472dafb64f281a805fe79c60f3331ba15cef0c198887f70688a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d626c6f636b6c6973742d636865636b)](https://packagist.org/packages/think.studio/laravel-blocklist-check)[![Total Downloads](https://camo.githubusercontent.com/900f314ddd87ef0b33a6f77a0e1c1634e40f33506d28191dc4c777eb44c146b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d626c6f636b6c6973742d636865636b)](https://packagist.org/packages/think.studio/laravel-blocklist-check)[![Build Status](https://camo.githubusercontent.com/19c34a49e4b7b1686870da165bb4b6ec03c3b64f52208b28152086bf9ef9a9be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d626c6f636b6c6973742d636865636b2f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-blocklist-check/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/b030c38a41e6239bb7b48c7a83796f623354edd65447c15105509b308dc79c78/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d626c6f636b6c6973742d636865636b2f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-blocklist-check/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6ae703006b4b5247f24acb1a14a595f84f8e6929ba52cd76dca7d96f331c18d0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d626c6f636b6c6973742d636865636b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-blocklist-check/?branch=main)

Add model to blocklist/allowlist,

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

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-blocklist-check
```

Optionally you can publish the config file with:

```
php artisan vendor:publish --provider="LaraBlockList\ServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

Update your model:

```
use LaraBlockList\Contracts\CanBeInBlocklist;
use LaraBlockList\Models\HasBlocklist;

class User /* ... */ implements CanBeInBlocklist
{
    use HasBlocklist;

    /**
     * @inheritDoc
     */
    public function getBlocklistProcessor(array $args = []): BlocklistProcessor
    {
        return new BlocklistProcessor([
            new RegexChecker([ '/\.ru$/', ], [ 'email' ]),
            new RegexChecker([ /* contain cyrillic */ '/[А-Яа-яЁё]+/u', ], [ 'name', ]),
        ]);
    }

    // ...
}
```

Now you can run checks:

```
php artisan blocklist:check "\App\Models\User"
# or
php artisan blocklist:check "\App\Models\User" 123
# or
php artisan blocklist:check "\App\Models\User" --from=2020-01-01 --queue=default
```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~346 days

Total

3

Last Release

994d ago

Major Versions

1.0.0 → 2.0.02022-07-25

PHP version history (2 changes)1.0.0PHP ^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/53f93fa87d58f33d106de6bd5e2946f8a345ebfaee146360746056cb134a15a0?d=identicon)[think.studio](/maintainers/think.studio)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (7 commits)")

---

Tags

laravelblocklistallowlist

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/thinkstudio-laravel-blocklist-check/health.svg)

```
[![Health](https://phpackages.com/badges/thinkstudio-laravel-blocklist-check/health.svg)](https://phpackages.com/packages/thinkstudio-laravel-blocklist-check)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)

PHPackages © 2026

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