PHPackages                             hrupin/yii2-censure - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hrupin/yii2-censure

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

hrupin/yii2-censure
===================

Censure for YII2

0.1.0(8y ago)11.5k1MITPHP

Since Sep 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hrupin/yii2-censure)[ Packagist](https://packagist.org/packages/hrupin/yii2-censure)[ RSS](/packages/hrupin-yii2-censure/feed)WikiDiscussions master Synced yesterday

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

yii2-censure
============

[](#yii2-censure)

Определение наличия мата (нецензурных слов) в тексте, матотест

Алгоритм достаточно надёжен и быстр, в т.ч. на больших объёмах данных

Метод обнаружения мата основывается на корнях и предлогах русского языка, а не на словаре Слова "лох", "хер", "залупа", "сука" матерными словами не считаются (см. словарь Даля) Разработка ведётся с 2005 года

Согласно статье 20.1 КоАП РФ нецензурная брань в общественных местах (интернет — место общественное) расценивается как мелкое хулиганство, за что установлена административная ответственность — наложение штрафа в размере от пятисот до одной тысячи рублей или административный арест на срок до пятнадцати суток.

Project was exported and update to Yii2 from

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist hrupin/yii2-censure "*"

```

or add

```
"hrupin/yii2-censure": "*"

```

to the require section of your `composer.json` file.

Configure
---------

[](#configure)

in common/config/main.php

```
'modules' => [
    'censure' => [
        'class' => 'hrupin\censure\Module',
        'replace' => '[цензура]'
    ]
]

```

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

[](#использование)

```
Url::toRoute('/censure/parse/index') -> url for ajax

```

```
$res = \hrupin\censure\models\Censure::parse('text', '6', '', true, '[censored]');
echo $res;

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

3147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9069a337e0ac7cc17f0776fb72d1d106869a482bb266ca35a37ec1ff5cfa682f?d=identicon)[hrupin](/maintainers/hrupin)

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/hrupin-yii2-censure/health.svg)

```
[![Health](https://phpackages.com/badges/hrupin-yii2-censure/health.svg)](https://phpackages.com/packages/hrupin-yii2-censure)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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