Download the PHP package fungku/spamguard without Composer
On this page you can find all versions of the php package fungku/spamguard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fungku/spamguard
More information about fungku/spamguard
Files in fungku/spamguard
Package spamguard
Short Description Guarding form requests from spam bots.
License Apache-2.0
Informations about the package spamguard
SpamGuard
Guarding form requests against bots.
Install
Add the service provider to config/app.php
in the providers
array:
Add the alias to config/app.php
in the aliases
array:
Config (optional)
If you'd like to change the default package config values, then publish the config and change the defaults...
Usage
To use the spamguard, there are two things you need to do.
1. Add the SpamGuard form elements in your form
Somewhere inside your form, just use SpamGuard::html()
.
Using all spam guard elements:
Specifying specific elements:
2. Add the SpamGuard middleware to your route or controller
Specifying specific middlewares:
Using all spam middleware:
Using the spam_timer
middleware in a controller normally and overriding the min_time
and max_time
for a specific action:
Options
Currently there are four spam middleware registered:
spam_honeypot
spam_timer
spam_recaptcha
spamguard
: A catch-all of all the available SpamGuard middleware listed above.
Notes
If you are selectively using elements and middleware, please note that the elements you use must match up with the middleware you assign to the routes.
All versions of spamguard with dependencies
illuminate/routing Version 5.1.*
illuminate/config Version 5.1.*
google/recaptcha Version ~1.1