Skip to content

This plugins adds captcha and allows you to manage your spams.

License

Notifications You must be signed in to change notification settings

monsieurbiz/SyliusAntiSpamPlugin

Repository files navigation

Banner of Sylius Anti Spam plugin

Anti Spam

Anti Spam Plugin license Tests Status Recipe Status Security Status

This plugins adds captcha and allows you to manage your spams.

Compatibility

Sylius Version PHP Version
1.11 8.0 - 8.1
1.12 8.1 - 8.2
1.13 8.1 - 8.2

Installation

If you want to use our recipes, you can configure your composer.json by running:

composer config --no-plugins --json extra.symfony.endpoint '["https://api.github.com/repos/monsieurbiz/symfony-recipes/contents/index.json?ref=flex/master","flex://defaults"]'

⚙️ To Be Defined.

Documentation

⚙️ To Be Completed.

Remove automatically quarantine entities (experimental)

  1. Add the monsieurbiz_anti_spam.quarantineable tag on our entity, for example for Customer:
    App\Entity\Customer\Customer:
        tags: ['monsieurbiz_anti_spam.quarantineable']
  1. Confirm or adjust the exceeded periods, by quarantine level, before remove the entities. By default, the:
  • suspected item is removed after 1 year
  • likely item is removed after 182 days
  • proven item is removed after 90 days

You can change there periods in config/packages/monsieurbiz_sylius_anti_spam_plugin.yaml:

monsieurbiz_sylius_anti_spam:
    exceeded:
        suspected: '1 day'
  1. Add in your crontab the remove command, example:
0 */6 * * * /usr/bin/flock -n /tmp/lock.app.remove_exceeded_quarantine bin/console monsieurbiz:anti-spam:remove-exceeded-quarantine-items

Contributing

You can open an Issue or a Pull Request if you want! 😘
Thank you!

Sponsors

This plugin is sponsored by:

License

This plugin is completely free and released under the MIT License.