Introduction
This is a simple spam detector which currently detect only keyheld down and invalid keyword.
This is just a package for the spam system created by Jeffrey Way in its Lets Build Forum Series at Laracast, Let's Build a forum with Laravel, (*1)
, (*2)
Install
composer require bitfumes/spamfree
, (*3)
Usage
Once you have the package in your project then you just need to use this in your request validation.Like if you want to protect body then, (*4)
'body' : ['required',new Spamfree]
, (*5)
Use Bitfumes\Spamfree\Rules\Spamfree at the top where you have your validation., (*6)
Testing
Run the tests with:, (*7)
vendor/bin/phpunit
Credits
Based on work originally created by Jeffrey Way: https://github.com/JeffreyWay, (*8)
Contributing
Please see CONTRIBUTING for details., (*9)
Security
If you discover any security-related issues, please email sarthak@bitfumes.com instead of using the issue tracker., (*10)
License
The MIT License (MIT). Please see License File for more information., (*11)