sendmux/core
Composer 安装命令:
composer require sendmux/core
包简介
Shared runtime helpers for Sendmux PHP SDK packages.
README 文档
README
Shared runtime helpers for Sendmux PHP SDK packages.
Read the PHP SDK guide at docs.sendmux.ai/sdks/php.
Requirements
- PHP 8.2 or newer.
- Composer.
Installation
composer require sendmux/core:^1.0
Usage
Use sendmux/core directly when you need the shared helper layer without a generated API client.
<?php require __DIR__ . '/vendor/autoload.php'; use Sendmux\Core\ApiKeySurface; use Sendmux\Core\Auth; use Sendmux\Core\Headers; use Sendmux\Core\RetryOptions; $apiKey = getenv('SENDMUX_MAILBOX_API_KEY') ?: ''; Auth::assertApiKeySurface($apiKey, ApiKeySurface::Mailbox); $headers = array_merge( Headers::idempotency('order-123'), Headers::conditional(ifMatch: '"mailbox-etag"') ); $retryOptions = new RetryOptions(maxAttempts: 3);
Features
Authvalidatessmx_root_andsmx_mbx_API key prefixes and configures bearer auth on generated clients.HeadersbuildsIdempotency-Key,If-Match, andIf-None-Matchheader arrays.Pagination::iterate()streams cursor-paginated responses.RetryMiddlewareandRetryOptionsadd retry and rate-limit backoff behaviour.ErrorMappermaps generated exceptions intoSendmuxApiError.
Package map
| Package | Use it for |
|---|---|
sendmux/sending |
Sending API client. |
sendmux/mailbox |
Mailbox API client. |
sendmux/management |
Management API client. |
sendmux/sdk |
Umbrella package that installs all PHP SDK surfaces. |
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.
- SDK docs: docs.sendmux.ai/sdks/php
- API keys guide: docs.sendmux.ai/guides/api-keys
- Source repository: github.com/Sendmux/sendmux-sdk
License
MIT. See LICENSE.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-01