adenijiayocharles / identibyte-laravel
Laravel wrapper for the Identibyte.com API
1.0.2
2021-02-06 08:50 UTC
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-09-09 21:45:44 UTC
README
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.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'
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