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.
- Get an api key from here
- Run
composer require adenijiayocharles/identibyte-laravel:1.0.2
from 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'
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