Download the PHP package monsieurbiz/sylius-anti-spam-plugin without Composer
On this page you can find all versions of the php package monsieurbiz/sylius-anti-spam-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download monsieurbiz/sylius-anti-spam-plugin
More information about monsieurbiz/sylius-anti-spam-plugin
Files in monsieurbiz/sylius-anti-spam-plugin
Package sylius-anti-spam-plugin
Short Description This plugins adds captcha and allows you to manage your spams.
License MIT
Informations about the package sylius-anti-spam-plugin
Anti Spam
This plugins adds captcha and allows you to manage your spams.
Compatibility
Sylius Version | PHP Version |
---|---|
2.0 | 8.2 - 8.3 |
ℹ️ For Sylius 1.x, see our 1.x branch and all 1.x releases.
Installation
If you want to use our recipes, you can configure your composer.json by running:
For the installation without flex, follow these additional steps
Change your `config/bundles.php` file to add the line for the plugin : Then create the config file in `config/packages/monsieurbiz_sylius_anti_spam_plugin.yaml` : Finally import the routes in `config/routes/monsieurbiz_sylius_anti_spam_plugin.yaml` :
Update customer entity
Your Customer
entity should implement MonsieurBiz\SyliusAntiSpamPlugin\Entity\QuarantineItemAwareInterface
and use the MonsieurBiz\SyliusAntiSpamPlugin\Entity\QuarantineItemAwareTrait
trait.
Update your database schema
Update your database schema with the plugin migrations:
Generate the migration and update your database schema with the new customer entity field:
Documentation
Use reCAPTCHA for register and contact form
Create or get your reCAPTCHA key and secret here.
Add your site key and secret to your .env file:
Remove automatically quarantine entities (experimental)
-
Add the
monsieurbiz_anti_spam.quarantineable
tag on our entity, for example for Customer: - 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
:
- Add in your crontab the remove command, example:
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.
All versions of sylius-anti-spam-plugin with dependencies
php Version ^8.2
sylius/sylius Version ~2.0.0