usevalid-email / php-sdk
Validate Your Emails with Confidence
1.0
2025-02-01 18:44 UTC
Requires
- php: >=7.4
- ext-json: *
- localtools/php-http-client: ^0.0.1
Requires (Dev)
- laravel/pint: ^1.18
- mockery/mockery: ^1.6
- pestphp/pest: ^3.2 || ^v3.5.1
- phpunit/phpunit: ^8.5.40 || ^11.4.3
This package is auto-updated.
Last update: 2025-02-03 01:11:39 UTC
README
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.