moonbaselabs/laravel-neverbounce

A laravel wrapper for the NeverBounceAPI-PHP.


Keywords
email, laravel, verification, neverbounce
License
MIT

Documentation

laravel-neverbounce

Validate an email address against the NeverBounce API.

Installation

composer require moonbaselabs/laravel-neverbounce

Add API key to configs/services.php (See Obtaining an API Key below):

'neverbounce' => [
    'api_key' => env('NEVERBOUNCE_API_KEY'),
],

Add translation to resources/lang/en/validation.php

'neverbounce' => 'The :attribute is not valid. :suggestion :error',

Obtaining an API key

  1. Register for a Neverbounce Account.
  2. Create a new App.
  3. Copy secret API Key. (Note: Make sure it is a v4 api key. It will start with private_***).

Usage

$emailInput = $request->validate([
    'email' => 'required|email|neverbounce',
]);