jzavorohina/censure 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jzavorohina/censure

最新稳定版本:1.6.0

Composer 安装命令:

composer require jzavorohina/censure

包简介

Dirty russian/english words filter

README 文档

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)

统计信息

  • 总下载量: 607
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2019-08-01