PHP Quick Start
Install and initialize the PHP SDK from a backend service.
Install
Package access
6MM provides the approved Composer package name, source, and version during partner onboarding.
Before you start
- Confirm the Agent API base URL with 6MM.
- Load apiSecret from environment variables or secret management.
- Keep SDK usage inside backend services only.
- Prepare idempotent handling for transfer and webhook flows.
Initialize client
Backend only
The PHP SDK signs Agent API requests and must not be exposed through public source code or frontend runtime environments.
Example: transfer funds in
Use decimal strings for amounts and preserve the original agentOrderNo when retrying or querying transfer status.