PHPackages                             xtodx/php-obscene-censor-rus - 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. xtodx/php-obscene-censor-rus

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

xtodx/php-obscene-censor-rus
============================

Класс для фильтрации нецензурных выражений (матов).

v1.0.3(5y ago)0156MITPHPPHP &gt;=5.3.0

Since Nov 7Pushed 5y agoCompare

[ Source](https://github.com/xtodx/php-obscene-censor-rus)[ Packagist](https://packagist.org/packages/xtodx/php-obscene-censor-rus)[ Docs](https://github.com/vearutop/php-obscene-censor-rus/)[ RSS](/packages/xtodx-php-obscene-censor-rus/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

php-obscene-censor-rus
======================

[](#php-obscene-censor-rus)

[![Build Status](https://camo.githubusercontent.com/b0b192a22a281bcd200bd719d1c62dd7a64cbf765cda96a8b46fb589e112848b/68747470733a2f2f7472617669732d63692e6f72672f7665617275746f702f7068702d6f627363656e652d63656e736f722d7275732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/vearutop/php-obscene-censor-rus) [![Total Downloads](https://camo.githubusercontent.com/d83d1221460e63c61f1c5aa47d5ad4e9ea9bc476a9141c93f0c0e49c9364cebe/68747470733a2f2f706f7365722e707567782e6f72672f7665617275746f702f7068702d6f627363656e652d63656e736f722d7275732f646f776e6c6f616473)](https://packagist.org/packages/vearutop/php-obscene-censor-rus)[![FOSSA Status](https://camo.githubusercontent.com/e9bfc042906fc344902098ebbe7356cb6eb6645e5495aa0ff23a789d6495c805/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532467665617275746f702532467068702d6f627363656e652d63656e736f722d7275732e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvearutop%2Fphp-obscene-censor-rus?ref=badge_shield)

Класс для фильтрации нецензурных выражений (матов).

Анализ на основе регулярных выражений с списком исключений, совместим с UTF8.

Использование:

```
$text = 'Да пошел ты нахуй и в пиzdu huesos, ушлепок ебаный, ебать мой вялый хуй!
Мой дед ветеран твоего деда педрилу ебал :( Хуячечки';

ObsceneCensorRus::filterText($text);

echo $text;
//Да пошел ты ***** и в ***** ******, ушлепок ******, ***** мой вялый ***!
//Мой дед ветеран твоего деда ******* **** :( ********
```

```
$text = ObsceneCensorRus::getFiltered($text);
```

```
var_dump(ObsceneCensorRus::isAllowed($text));
// false
```

Вторым параметром можно указать кодировку если она отличается от UTF8

```
ObsceneCensorRus::getFiltered('кто прочитает тот лол', 'CP1251')
```

Установка:

```
composer require vearutop/php-obscene-censor-rus

```

Тесты:

```
php phpunit.phar ./tests

```

Цензура, антимат, матерщинные слова, фильтр мата, обсценная лексика, нецензурная брань, треугольные сиськи.

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/96e092167f686b2bdcc2795f7e7ae46d1e1f26d6171d1cdcfe16e978779a5290/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532467665617275746f702532467068702d6f627363656e652d63656e736f722d7275732e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fvearutop%2Fphp-obscene-censor-rus?ref=badge_large)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 64.7% 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 ~564 days

Total

4

Last Release

2149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90301739899b418ac147020ef8fb09f1c8eea487e02f1bf1153bbade39564c6f?d=identicon)[xtodx](/maintainers/xtodx)

---

Top Contributors

[![vearutop](https://avatars.githubusercontent.com/u/1381436?v=4)](https://github.com/vearutop "vearutop (11 commits)")[![awd-studio](https://avatars.githubusercontent.com/u/15061745?v=4)](https://github.com/awd-studio "awd-studio (5 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

censorантиматцензурахуймодерация

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xtodx-php-obscene-censor-rus/health.svg)

```
[![Health](https://phpackages.com/badges/xtodx-php-obscene-censor-rus/health.svg)](https://phpackages.com/packages/xtodx-php-obscene-censor-rus)
```

###  Alternatives

[vearutop/php-obscene-censor-rus

Класс для фильтрации нецензурных выражений (матов).

127124.2k](/packages/vearutop-php-obscene-censor-rus)[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)

PHPackages © 2026

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