roottusk/slangdetect
Composer 安装命令:
composer require roottusk/slangdetect
包简介
PHP Slang Detection Library for Web Applications
README 文档
README
SlangDetect
A Slang Detect Library in PHP which can be reused to filter out any badwords or check from a chunk of text.
Installation
composer require roottusk/slangdetect
Usage
require "lib/init.php"; ContainsBadWord($String) //Returns count of bad words IsBadWord($String) //Returns boolean StripBadWords($String,$Char) //Strips Bad words from the provided text with given character. StripOneWord($String,$Word,$Char) //Strips all the occurences of the provided word in the given text with given character
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-13