yiier/yii2-anti-spam
Composer 安装命令:
composer require yiier/yii2-anti-spam
包简介
反垃圾
README 文档
README
反垃圾评论
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiier/yii2-anti-spam "*"
or add
"yiier/yii2-anti-spam": "*"
to the require section of your composer.json file.
Migrations
Run the following command
php yii migrate --migrationPath=@yiier/antiSpam/migrations/
Usage
Create Spam:
<?php use \yiier\antiSpam\models\Spam; Spam::create(Spam::TYPE_CONTAINS, '网{2}赌'); Spam::create(Spam::TYPE_CONTAINS, '找小姐'); Spam::create(Spam::TYPE_SIMILAR, '网赌平台冻账号说我违规套利不给出款该怎么办?');
Spam Validator :
public function rules() { return [ // ... ['content', \yiier\antiSpam\SpamValidator::className()], // code ]; }
统计信息
- 总下载量: 208
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-4-Clause
- 更新时间: 2019-06-24