PHPackages                             yaroslawww/php-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. yaroslawww/php-blocklist-check

Abandoned → [think.studio/php-blocklist-check](/?search=think.studio%2Fphp-blocklist-check)Library[Validation &amp; Sanitization](/categories/validation)

yaroslawww/php-blocklist-check
==============================

Simple blocklist validator.

2.1.0(2y ago)037MITPHPPHP ^8.1

Since Sep 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/php-blocklist-check)[ Packagist](https://packagist.org/packages/yaroslawww/php-blocklist-check)[ Docs](https://github.com/dev-think-one/php-blocklist-check)[ RSS](/packages/yaroslawww-php-blocklist-check/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

PHP block list check.
=====================

[](#php-block-list-check)

[![Packagist License](https://camo.githubusercontent.com/96e481258c37432eebc354c8ddee6994d411fd0240754f4e4f9b68a667b1ad2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f7068702d626c6f636b6c6973742d636865636b3f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/96e481258c37432eebc354c8ddee6994d411fd0240754f4e4f9b68a667b1ad2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f7068702d626c6f636b6c6973742d636865636b3f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/a947bb6ecad09be544c00c73be9f70bc54491fc2b629da2aa3924f3f3677c78c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f7068702d626c6f636b6c6973742d636865636b)](https://packagist.org/packages/think.studio/php-blocklist-check)[![Total Downloads](https://camo.githubusercontent.com/1fb9bcf4c8beda253db10830f741e3b5e857e4b3a7ab9d5175f6cf37122148a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f7068702d626c6f636b6c6973742d636865636b)](https://packagist.org/packages/think.studio/php-blocklist-check)[![Build Status](https://camo.githubusercontent.com/622b4a9d4e92be48f42e31b980beb37a92263af23f3dd6dd36841a7ddafee138/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f7068702d626c6f636b6c6973742d636865636b2f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/php-blocklist-check/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/3a5d20b2a4381fd9f632a9318018a15d7198da6435dd3e56b86e22109bf81b03/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f7068702d626c6f636b6c6973742d636865636b2f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/php-blocklist-check/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/86e46c6389e81c5b566e5dadbf589b881715e0fd934aa2f6280dcfd3c7b3c0e2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f7068702d626c6f636b6c6973742d636865636b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/php-blocklist-check/?branch=main)

Simple blocklist validator.

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

[](#installation)

Install the package via composer:

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

Usage
-----

[](#usage)

```
$isAllowlisted = ( new BlocklistProcessor( [
        new RegexChecker( [ '/\.hacker$/', ], [ 'email' ] ),
        new RegexChecker( [
            // contain cyrillic
            '/[А-Яа-яЁё]+/u',
        ], [
            'title',
            'first_name',
            'last_name',
        ] ),
    ] ) )->passed( $user )
```

Credits
-------

[](#credits)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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/66f778dcd7a390dcb08d29ee36d431684877ace6b0f7c3d68f4384409f2b0fac?d=identicon)[yaroslawww](/maintainers/yaroslawww)

---

Top Contributors

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

---

Tags

blocklist

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslawww-php-blocklist-check/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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