jzavorohina/censure

Dirty russian/english words filter

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

Package info

github.com/jzavorohina/Censure

Homepage

Issues

pkg:composer/jzavorohina/censure

Transparency log

Statistics

Installs: 620

Dependents: 0

Suggesters: 0

Stars: 2

This package is auto-updated.

Last update: 2026-04-05 23:11:20 UTC


README

Dirty words - filter. 18+ A PHP class to filter out dirty, vulgar, obscene, profane words in russian or english texts.

Key features:

  • Find profanity (in Russian and English texts) and hide it with *** symbols.
  • Find profanity (in Russian texts) and replace it with normative vocabulary.

Some examples:

// Searches if there any abusive words in the text
Censure::is_bad('Original phrase with abusive words'); // return: bool

// Replace abusive words from string
Censure::replace('Original phrase with abusive words'); // return: string (cleaned text)

// Clean indexes in $_POST from abusive words
Censure::cleanPost('Unlimited number of arguments to match indexes in $_POST to clean'); // return: void

// Fixing abusive words inside string
Censure::fix('Original phrase with abusive words'); // return: string (fixed text)