Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stuyam/laravel-kickbox-validator
A kickbox email validator for form requests in Laravel.
https://github.com/stuyam/laravel-kickbox-validator
kickbox laravel packagist php
Last synced: 3 months ago
JSON representation
A kickbox email validator for form requests in Laravel.
- Host: GitHub
- URL: https://github.com/stuyam/laravel-kickbox-validator
- Owner: stuyam
- License: mit
- Created: 2016-06-29T01:44:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-12T14:20:17.000Z (over 5 years ago)
- Last Synced: 2024-10-08T00:42:54.838Z (3 months ago)
- Topics: kickbox, laravel, packagist, php
- Language: PHP
- Homepage: https://packagist.org/packages/stuyam/laravel-kickbox-validator
- Size: 13.7 KB
- Stars: 4
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# Lavarel Kickbox Validator
[![Packagist](https://img.shields.io/packagist/v/stuyam/laravel-kickbox-validator.svg)](https://packagist.org/packages/stuyam/laravel-kickbox-validator)
[![Packagist](https://img.shields.io/packagist/dt/stuyam/laravel-kickbox-validator.svg)](https://packagist.org/packages/stuyam/laravel-kickbox-validator)A kickbox.io email lookup validator for form requests in laravel.
This custom validator for Laravel uses the [kickbox.io](https://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](https://github.com/stuyam/validators) project.
Also see: [Laravel Twilio Validator](https://github.com/stuyam/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:```php
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
'required|kickbox'
];
}
}```