2017 © Pedro Peláez
 

library laravel-kickbox-validator

A kickbox email validator for form requests in laravel

image

stuyam/laravel-kickbox-validator

A kickbox email validator for form requests in laravel

  • Wednesday, October 25, 2017
  • by stuyam
  • Repository
  • 2 Watchers
  • 4 Stars
  • 2,524 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 11 % Grown

The README.md

Lavarel Kickbox Validator

Packagist Packagist, (*1)

A kickbox.io email lookup validator for form requests in laravel. This custom validator for Laravel uses the kickbox.io API to validate that an email actual exists. Not just if it has a specific format or not, but if the email is a real email registered email., (*2)

For a working example check out Laravel Validator Example project., (*3)

Also see: Laravel Twilio Validator for phone number validation., (*4)

Step 1

Install via composer:, (*5)

composer require stuyam/laravel-kickbox-validator

Step 2

Add to your config/app.php service provider list:, (*6)

StuYam\KickboxValidator\KickboxValidatorServiceProvider::class

Step 3

Add Kickbox credentials to your .env file:, (*7)

KICKBOX_API_KEY=xxxxxxxxxx

Step 4 (optional)

Publish the kickbox config with php artisan vendor:publish --tag=kickbox, (*8)

Usage

Add the string 'kickbox' to a form request rules or validator like so:, (*9)

<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;

class EmailFormRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'email' => 'required|kickbox'
        ];
    }
}

The Versions

25/10 2017

dev-master

9999999-dev

A kickbox email validator for form requests in laravel

  Sources   Download

MIT

The Requires

 

by Stuart Yamartino

laravel email validator validation kickbox

13/10 2017

1.0.2

1.0.2.0

A kickbox email validator for form requests in laravel

  Sources   Download

MIT

The Requires

 

by Stuart Yamartino

laravel email validator validation kickbox

02/06 2017

1.0.1

1.0.1.0

A kickbox email validator for form requests in laravel

  Sources   Download

MIT

The Requires

 

by Stuart Yamartino

laravel email validator validation kickbox

30/06 2016

1.0.0

1.0.0.0

A kickbox email validator for form requests in laravel

  Sources   Download

MIT

The Requires

 

by Stuart Yamartino

laravel email validator validation kickbox