identibyte-laravel maintained by adenijiayocharles
Description
Laravel wrapper for the Identibyte.com API
Author
Last update
2021/02/09 14:44
(dev-master)
License
Downloads
15
Tags
identibyte-laravel
This is a wrapper for the Identibyte API. Iddentibyte allows you to identify and mark disposable email addresses to save your company's resources for real users.
Installation
- Get an api key from here
- Run
composer require adenijiayocharles/identibyte-laravel:1.0.2from your Laravel application root. - Add the below to the bottom of your
.env
IDENTIBYTE_KEY={your-api-key}
- Publish the config file from the package by running
php artisan vendor:publish --provider='Adenijiayocharles\Identibyte\IdentibyteServiceProvider'
Usage
To check if an email is a disposable email or not, see the examples below
namespace App\Http\Controllers;
use Adenijiayocharles\Identibyte\Identibyte;
class TestController extends Controller
{
// returns the whole response from identibye
public function test() {
return Identibyte::check('test@email.com');
}
// returns true if email is disposable and false if not
public function checkEmail() {
return Identibyte::isDisposableEmail('test@email.com');
}
}
For more infomation visit here