mailset-app / php
Mailset's official PHP SDK: send mail from your own domains, verify webhooks, and run every Mailset command.
v0.7.0
2026-12-01 12:56 UTC
Requires
- php: >=8.1
- ext-curl: *
- ext-json: *
- ext-openssl: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Send mail from your own domains, verify Mailset's webhooks, and run every Mailset command from PHP 8.1 or later. It needs the curl, json and openssl extensions and no other package.
composer require mailset-app/php
$mailset = new Mailset\Client(); // reads MAILSET_KEY from the environment $sent = $mailset->send([ 'from' => 'Acme <hello@example.com>', 'to' => 'ana@example.org', 'subject' => 'Your Acme code', 'text' => 'Your code is 123456.', ]);
sendMany([...]) sends a list and answers one result per message. Every other command is a method of its group, such as $mailset->domains->add(['name' => 'example.com']), and Mailset\Webhooks::verify($body, $headers, $secret) checks a webhook with no client at all.
- The SDK: https://mailset.app/docs/sdk
- The API: https://mailset.app/docs/api
Questions and issues: mailset.app/support