Validate Your Emails with Confidence

Installs: 291

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/usevalid-email/php-sdk

1.0 2025-02-01 18:44 UTC

This package is auto-updated.

Last update: 2025-10-01 00:10:46 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.