nexmailpro/php-sdk

Standalone PHP SDK for the NexMailPro email verification API.

Maintainers

Package info

github.com/gsoroar32/nexmailpro-php-sdk

pkg:composer/nexmailpro/php-sdk

Transparency log

Statistics

Installs: 2

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-07-02 09:46 UTC

This package is auto-updated.

Last update: 2026-07-02 10:05:26 UTC


README

Standalone PHP SDK for the NexMailPro email verification API.

Endpoint

This SDK targets:

POST https://nexmailpro.com/api/v1/verify/email

Requirements

  • PHP 8.2+

Installation

composer require nexmailpro/php-sdk

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use NexMailPro\PhpSdk\Client;

$client = new Client(apiKey: 'your-api-key');

$response = $client->verifyEmail('user@example.com', [
    'source' => 'signup-form',
]);

var_dump($response);

API

verifyEmail(string $email, array $payload = []): array

Sends a JSON POST request to /api/v1/verify/email. The $email argument is always included in the request payload as the email field.

Testing

If this package has not been installed with Composer yet, you can still run the test suite by pointing PHPUnit at the bundled config:

php /path/to/phpunit -c phpunit.xml.dist

Once dependencies are installed locally, you can also use:

composer test

License

MIT

Webhook verification test - 2026-07-02 10:01:10 UTC