Skip to content

adenijiayocharles/laravel-identibyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.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

About

Laravel wrapper for the Identibyte disposal email verification service

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages