monsieurbiz/sylius-anti-spam-plugin

此插件添加了验证码,并允许您管理您的垃圾邮件。

v1.2.0 2024-09-04 13:51 UTC

This package is auto-updated.

Last update: 2024-09-04 13:52:13 UTC


README

Banner of Sylius Anti Spam plugin

反垃圾邮件

Anti Spam Plugin license Tests Status Recipe Status Security Status

此插件添加了验证码,并允许您管理您的垃圾邮件。

兼容性

安装

如果您想使用我们的食谱,可以通过运行以下命令配置您的 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"]'

⚙️ 待定义。

文档

⚙️ 待完成。

自动移除隔离实体(实验性)

  1. 在实体上添加 monsieurbiz_anti_spam.quarantineable 标签,例如对于客户
    App\Entity\Customer\Customer:
        tags: ['monsieurbiz_anti_spam.quarantineable']
  1. 在移除实体之前,通过隔离级别确认或调整超期时间。默认情况下,
  • 疑似物品在1年后被移除
  • 可能物品在182天后被移除
  • 确定物品在90天后被移除

您可以在 config/packages/monsieurbiz_sylius_anti_spam_plugin.yaml 中更改这些时间

monsieurbiz_sylius_anti_spam:
    exceeded:
        suspected: '1 day'
  1. 在 crontab 中添加移除命令,例如
0 */6 * * * /usr/bin/flock -n /tmp/lock.app.remove_exceeded_quarantine bin/console monsieurbiz:anti-spam:remove-exceeded-quarantine-items

贡献

如果您想的话,可以打开一个问题或拉取请求! 😘
谢谢!

赞助商

此插件由以下公司赞助

许可证

此插件完全免费,并发布在 MIT 许可证 下。