jzavorohina / censure
污秽的俄语/英语词汇过滤器
此包的官方仓库似乎已消失,因此该包已被冻结。
1.3.0
2023-07-14 19:20 UTC
Requires
- php: >=5.0.0
Requires (Dev)
- php: >=7.3.0
- phpunit/phpunit: ^9
README
污秽词汇 - 过滤器。
一个用于过滤俄语或英语文本中的污秽、粗俗、下流、亵渎词汇的PHP类。
主要功能
- 在俄语和英语文本中查找粗话并用***符号隐藏。
- 在俄语文本中查找粗话并用规范词汇替换。
一些示例
// 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)