Getting Started
Install the PHP email verification SDK using Composer by running composer require ev-ecomtechbd/php-sdk in your project root. The package requires PHP 7.4 or higher, including PHP 8.0, 8.1, 8.2, and 8.3. It uses Guzzle as its HTTP client and follows PSR-4 autoloading conventions. If your project already uses Guzzle, the SDK will use the version you have installed. For Laravel projects, the SDK includes a service provider that is auto-discovered, so no additional registration is required after installation.
After installing, create an instance of EmailVerifier with your API key. For Laravel applications, add EV_API_KEY to your .env file and run php artisan vendor:publish --tag=ev-config to publish the configuration file. The SDK will automatically read the key from your environment. For standalone PHP projects, pass the API key directly to the constructor or set it as an environment variable. The constructor accepts an optional configuration array where you can set timeout, retries, sandbox mode, and a custom base_url. The client uses connection pooling via Guzzle and is safe to reuse across requests in long-running processes.