thoughtco/statamic-spam-check
Composer 安装命令:
composer require thoughtco/statamic-spam-check
包简介
Checks form submission content against a spam classifier
README 文档
README
This addon checks any form submission content against the Spam Check API.
Installation
Install by composer: composer require thoughtco/statamic-spam-check
Add your API key in your .env under the key: STATAMIC_SPAM_CHECK_API_KEY
eg
STATAMIC_SPAM_CHECK_API_KEY="my-key"
Configuration
By default all Form Submissions will be checked for the presence of a text or textarea field, and if found a check will be run.
If you want to override this, publish the config:
php artisan vendor:publish --tag=statamic-spam-check
You then have the option to specify an array of specific forms to check, what field handle to check for and whether you want to fail silently.
Testing during development
If you want to test responses during development you can use the STATAMIC_SPAM_CHECK_TEST_MODE env value.
Setting it to disable will prevent the addon from running.
Setting it to fail with throw a validation error, or fail silently, depending on what the fail_silently config value is set to.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-04-08