PHPackages                             usevalid-email/laravel-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. usevalid-email/laravel-sdk

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

usevalid-email/laravel-sdk
==========================

Validate Your Emails with Confidence

1.0(1y ago)015MITPHPPHP ^8.1CI passing

Since Feb 7Pushed 3mo agoCompare

[ Source](https://github.com/usevalid-email/laravel-sdk)[ Packagist](https://packagist.org/packages/usevalid-email/laravel-sdk)[ Docs](https://usevalid.email)[ GitHub Sponsors](https://github.com/usevalid-email)[ RSS](/packages/usevalid-email-laravel-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

usevalid.email Laravel SDK
==========================

[](#usevalidemail-laravel-sdk)

[![PHP Composer](https://github.com/usevalid-email/laravel-sdk/actions/workflows/php.yml/badge.svg)](https://github.com/usevalid-email/laravel-sdk/actions/workflows/php.yml)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c234a42e8ac879b68c60fcfa2dc095e6ac837c0f203dcf2b75e53e51886eb262/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f75736576616c69642d656d61696c2f6c61726176656c2d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/usevalid-email/laravel-sdk)[![Total Downloads](https://camo.githubusercontent.com/ecf4f06b2bbacbc3b35c771bda32636ee5ada951993d6a3b41d362d5e74db2be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75736576616c69642d656d61696c2f6c61726176656c2d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/usevalid-email/laravel-sdk)[![License](https://camo.githubusercontent.com/eec9ec9beb1b300d801170896d2c4e586e5028a88c2a5a809745a56b4ab91749/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f75736576616c69642d656d61696c2f6c61726176656c2d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/usevalid-email/laravel-sdk)

Validate Your Emails with Confidence

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require usevalid-email/laravel-sdk
```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
use UseValidEmail\LaravelSdk\LaravelSdk;

$token = 'your-access-token';
$sdk = new LaravelSdk($token);
```

### Validate Email

[](#validate-email)

```
use Illuminate\Support\Facades\Validator;

$validator = Validator::make(['email' => 'test@example.com'], [
    'email' => 'valid_email',
]);

if ($validator->fails()) {
    echo "Invalid email.";
} else {
    echo "Valid email.";
}
```

### Controller Example

[](#controller-example)

> Here is an example of how to use the valid\_email validator in a Laravel controller:

```
