nexmailpro/php-sdk
Composer 安装命令:
composer require nexmailpro/php-sdk
包简介
Standalone PHP SDK for the NexMailPro email verification API.
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-02