monsieurbiz / sylius-anti-spam-plugin
此插件添加了验证码,并允许您管理您的垃圾邮件。
v1.2.0
2024-09-04 13:51 UTC
Requires
- php: ^8.0
- karser/karser-recaptcha3-bundle: ~0.1.16
- sylius/sylius: >=1.11 <1.14
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- phpmd/phpmd: ^2.15
- phpspec/phpspec: ^7.0
- phpstan/phpstan: ^1.8.4
- phpstan/phpstan-doctrine: ^1.3.2
- phpstan/phpstan-webmozart-assert: ^1.1
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-09-04 13:52:13 UTC
README
反垃圾邮件
此插件添加了验证码,并允许您管理您的垃圾邮件。
兼容性
安装
如果您想使用我们的食谱,可以通过运行以下命令配置您的 composer.json:
composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'
⚙️ 待定义。
文档
⚙️ 待完成。
自动移除隔离实体(实验性)
- 在实体上添加
monsieurbiz_anti_spam.quarantineable
标签,例如对于客户
App\Entity\Customer\Customer: tags: ['monsieurbiz_anti_spam.quarantineable']
- 在移除实体之前,通过隔离级别确认或调整超期时间。默认情况下,
- 疑似物品在1年后被移除
- 可能物品在182天后被移除
- 确定物品在90天后被移除
您可以在 config/packages/monsieurbiz_sylius_anti_spam_plugin.yaml
中更改这些时间
monsieurbiz_sylius_anti_spam: exceeded: suspected: '1 day'
- 在 crontab 中添加移除命令,例如
0 */6 * * * /usr/bin/flock -n /tmp/lock.app.remove_exceeded_quarantine bin/console monsieurbiz:anti-spam:remove-exceeded-quarantine-items
贡献
如果您想的话,可以打开一个问题或拉取请求! 😘
谢谢!
赞助商
此插件由以下公司赞助
许可证
此插件完全免费,并发布在 MIT 许可证 下。