Validate Your Emails with Confidence

1.0 2025-02-01 18:44 UTC

This package is auto-updated.

Last update: 2025-02-03 01:11:39 UTC


README

PHP Composer

Latest Version on Packagist Total Downloads License

Validate Your Emails with Confidence

Installation

You can install the package via composer:

composer require usevalid-email/php-sdk

Usage

Initialization

use UseValidEmail\Sdk;

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

Validate Email

try {
    $email = 'example@example.com';
    $response = $sdk->emailValidator->validate($email);
    print_r($response->toArray());
} catch (Exception $e) {
    // Handle exception
}

Using Helper Function

try {
    $email = 'example@example.com';
    $response = validateEmail($email);
    print_r($response->toArray());
} catch (Exception $e) {
    // Handle exception
}

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.