New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

stuyam/laravel-kickbox-validator

A kickbox email validator for form requests in laravel
10,099 4
Install
composer require stuyam/laravel-kickbox-validator
Latest Version:1.0.3
Laravel:5 · 6
License:MIT
Last Updated:Sep 12, 2019
Links: GitHub  ·  Packagist
Maintainer: stuyam

Lavarel Kickbox Validator

Packagist Packagist

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.

For a working example check out Laravel Validator Example project.

Also see: Laravel Twilio Validator for phone number validation.

Step 1

Install via composer:

composer require stuyam/laravel-kickbox-validator

Step 2

Add to your config/app.php service provider list:

StuYam\KickboxValidator\KickboxValidatorServiceProvider::class

Step 3

Add Kickbox credentials to your .env file:

KICKBOX_API_KEY=xxxxxxxxxx

Step 4 (optional)

Publish the kickbox config with php artisan vendor:publish --tag=kickbox

Usage

Add the string 'kickbox' to a form request rules or validator like so:

<?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'
        ];
    }
}

Related Packages

hamedmehryar/laravel-kickbox-validator

A kickbox email validator for form requests in laravel (forked from 'stayum')

62 1
polass/validators

Extra validators for Laravel

6 0
laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2,620,839 245
kouz/laravel-mailgun-email-validation

Laravel email validation that uses the Mailgun API for a three-step validation c...

151,056 11
apavliukov/laravel-email-smtp-validation

Validate email address via SMTP to check if it really exists

32,546 1

Version History

Version Released Laravel License
1.0.3 ^5.0|^6.0 MIT
1.0.2 ^5.0 MIT
1.0.1 ^5.2 MIT
1.0.0 ^5.2 MIT