sendmux / sdk
Umbrella package for Sendmux PHP SDK clients.
Requires
- php: ^8.2
- sendmux/core: ^2.1
- sendmux/mailbox: ^2.1
- sendmux/management: ^2.1
- sendmux/sending: ^2.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-11 03:42:57 UTC
README
Umbrella package for Sendmux PHP SDK clients.
Read the PHP SDK guide at sendmux.ai/docs/sdks/php.
Requirements
- PHP 8.2 or newer.
- Composer.
- A Sendmux API key or REST OAuth grant for each API surface you call.
Installation
composer require sendmux/sdk:^2.1
Upgrading from 1.x? Read the PHP 2.0 migration guide before changing your Composer constraint.
Usage
The umbrella package installs the core, sending, mailbox, and management packages together. Create clients through the surface package factories.
<?php require __DIR__ . '/vendor/autoload.php'; use Sendmux\Mailbox\ClientFactory as MailboxFactory; use Sendmux\Management\ClientFactory as ManagementFactory; use Sendmux\Sending\ClientFactory as SendingFactory; $sending = SendingFactory::createEmailsApi( getenv('SENDMUX_MAILBOX_API_KEY') ?: '' ); $mailbox = MailboxFactory::createMailboxAPIApi( getenv('SENDMUX_MAILBOX_API_KEY') ?: '' ); $management = ManagementFactory::createMailboxesApi( getenv('SENDMUX_ROOT_API_KEY') ?: '' );
Note
sendmux/sdk installs all PHP SDK surfaces. It does not replace the surface factories.
For OAuth, use each factory’s WithAccessToken variant, such as SendingFactory::createMetaApiWithAccessToken($accessToken). It accepts a bare token or a callable returning one; see OAuth setup and lifecycle.
Included packages
| Package | Use it for | API key |
|---|---|---|
sendmux/core |
Shared helpers for auth, headers, retries, pagination, and errors. | Any Sendmux API key. |
sendmux/sending |
Sending API client. | smx_mbx_ or owner-approved smx_agent_ |
sendmux/mailbox |
Mailbox API client. | smx_mbx_ or scoped smx_agent_ |
sendmux/management |
Management API client. | smx_root_ |
The package also exposes Sendmux\Sdk\Sdk::VERSION for package-version checks.
Support
For help, include the package name, version, API surface, and sanitised request details. Do not include API keys, tokens, passwords, webhook secrets, customer data, or private account details.
- PHP SDK guide: sendmux.ai/docs/sdks/php
- Sending API reference: sendmux.ai/docs/sending-api/introduction
- Mailbox API reference: sendmux.ai/docs/mailbox-api/introduction
- Management API reference: sendmux.ai/docs/api/introduction
- API keys guide: sendmux.ai/docs/guides/api-keys
- Source repository: github.com/Sendmux/sendmux-sdk
License
MIT. See LICENSE.