2017 © Pedro Peláez
 

library spamguard

Guarding form requests from spam bots.

image

fungku/spamguard

Guarding form requests from spam bots.

  • Wednesday, June 1, 2016
  • by ryanwinchester
  • Repository
  • 2 Watchers
  • 12 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

SpamGuard

Guarding form requests against bots., (*1)

Version License Downloads Quality Travis, (*2)

Install

composer require fungku/spamguard

Add the service provider to config/app.php in the providers array:, (*3)

Fungku\SpamGuard\Providers\SpamGuardServiceProvider::class,

Add the alias to config/app.php in the aliases array:, (*4)

'SpamGuard' => Fungku\SpamGuard\Facades\SpamGuard::class,

Config (optional)

If you'd like to change the default package config values, then publish the config and change the defaults..., (*5)

php artisan vendor:publish --provider="Fungku\SpamGuard\Providers\SpamGuardConfigServiceProvider" --tag="config"

Usage

To use the spamguard, there are two things you need to do., (*6)

1. Add the SpamGuard form elements in your form

Somewhere inside your form, just use SpamGuard::html()., (*7)

Using all spam guard elements:, (*8)



{!! SpamGuard::html() !!}

Specifying specific elements:, (*9)



{!! SpamGuard::html(['spam_honeypot', 'spam_timer', 'spam_recaptcha']) !!}

2. Add the SpamGuard middleware to your route or controller

Specifying specific middlewares:, (*10)

class MyController extends Controller
{
    public function __construct()
    {
        $this->middleware('spam_honeypot');
        $this->middleware('spam_timer');
        $this->middleware('spam_recaptcha');
    }
}

Using all spam middleware:, (*11)

$this->middleware('spamguard');

Using the spam_timer middleware in a controller normally and overriding the min_time and max_time for a specific action:, (*12)

$this->middleware('spam_timer:10,300', ['only' => 'postComment']);

Options

Currently there are four spam middleware registered:, (*13)

  • 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., (*14)

The Versions

01/06 2016

dev-master

9999999-dev

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

25/01 2016

v0.2.0

0.2.0.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

14/01 2016

v0.1.8

0.1.8.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

14/01 2016

v0.1.7

0.1.7.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

14/01 2016

v0.1.6

0.1.6.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

14/01 2016

v0.1.5

0.1.5.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

07/07 2015

v0.1.4

0.1.4.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

06/07 2015

v0.1.3

0.1.3.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

06/07 2015

v0.1.2

0.1.2.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

05/07 2015

v0.1.1

0.1.1.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

laravel middleware bot spam

05/07 2015

v0.1.0

0.1.0.0

Guarding form requests from spam bots.

  Sources   Download

Apache-2.0

The Requires

 

laravel middleware bot spam