monsieurbiz / sylius-anti-spam-plugin
This plugins adds captcha and allows you to manage your spams.
Installs: 7 445
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 8
Forks: 3
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.1
- karser/karser-recaptcha3-bundle: ~0.1.16
- sylius/sylius: >=1.12 <2.0
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: 2025-02-21 17:06:13 UTC
README
Anti Spam
This plugins adds captcha and allows you to manage your spams.
Compatibility
Sylius Version | PHP Version |
---|---|
1.12 | 8.1 - 8.2 - 8.3 |
1.13 | 8.1 - 8.2 - 8.3 |
1.14 | 8.1 - 8.2 - 8.3 |
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)
- Add the
monsieurbiz_anti_spam.quarantineable
tag on our entity, for example for Customer:
App\Entity\Customer\Customer: tags: ['monsieurbiz_anti_spam.quarantineable']
- 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'
- 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.