承接 truecastdesign/spamless 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

truecastdesign/spamless

Composer 安装命令:

composer require truecastdesign/spamless

包简介

This library provides spam filtering and protection for in coming content.

README 文档

README

Install

To install with composer:

composer require truecastdesign/spamless

Requires PHP 7.1 or newer.

Usage

Here's a basic usage example:

# composer autoloader
require '/path/to/vendor/autoload.php';

$Spam = new Truecast\Spamless(['name'=>'My Name', 'message'=>'This is a message', 'phone'=>'This value is not checked']);

# 'check' should be passed the value keys you want to check
# 'tests' should be passed the tests to perform

if ($Spam->tests(['gibberish','uppercase','underscores','keywords','russian','url','html','salesEmail'])->check(['name','phone', 'message'])) {
	echo 'valid';
} else {
	echo 'not valid: ';
	print_r($Spam->errors());
}

Available Tests

Test Description
gibberish Detects strings with 6 or more consecutive consonants, which typically indicates non-English or random text.
uppercase Flags content where all alphabetic characters on a line are uppercase, a common spam indicator.
underscores Detects words combined with underscores (e.g. buy_now_cheap).
keywords Searches for known spam keywords from a built-in keyword list.
russian Detects Cyrillic (Russian) characters.
url Detects URLs or domain-like patterns in the text.
html Detects HTML tags in the text.
salesEmail Detects cold outreach and SEO/sales spam patterns. Flags a message if 2 or more known spam phrases are found, including common SEO pitches, video service offers, and generic cold outreach openers.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固