Key Takeaways
- php android sms gateway api send sms: call documented HTTPS JSON with Bearer auth — we do not sell a Composer “Complete PHP SDK”.
- Samples on /codebase-php show shapes; Developer Center owns live fields.
- HTTP 2xx means accepted, not delivered. Wire DLR or webhooks.
- Priced by devices and SMS send volume. You use your own phone and operator SMS credit. BYO Android phone and operator airtime.
- Use client_ref / challenge ids so retries do not multiply OTP.
- Free is 300 SMS lifetime on one device; paid from $19/month.
REST HTTPS — not a PHP SDK product
Search intent for php android sms gateway api send sms is how to POST from PHP, not how to install a fake Composer product. Service pricing is based on device count and total SMS sent through the gateway. Hub: Android SMS Gateway API. Live fields: Developer Center. Sample shapes: PHP code samples.
If your README says “Download PHP SDK” as if we ship a package marketplace, rewrite it. The contract is Bearer + JSON over HTTPS; the phone is still the modem.
Send flow in PHP
Load the key from env, build to / text (and optional routing fields) per docs, POST with a timeout, persist the accepted id, then wait for DLR/webhook truth. Conceptual sketch only — confirm live paths before production.
$apiKey = getenv('SMS_GATEWAY_API_KEY');
$payload = json_encode([
'to' => $e164,
'text' => $body,
'client_ref' => $challengeId,
]);
// POST HTTPS with Authorization: Bearer and a hard timeout
What each layer owns
| Layer | Owns | Not |
|---|---|---|
| PHP app | Auth, payload, idempotency, timeouts | A marketplace PHP SDK SKU from us |
| Control plane | Queue, device assignment, history | Carrier airtime balance |
| Android + SIM | Radio send path | Your PHP process becoming an SMSC |
Idempotency and DLR
Retries without a stable client reference create triple OTPs. Accept ≠ deliver. Wire webhooks or status polls. Sibling stack: Laravel SMS gateway.
Secrets and timeouts
Keys stay server-side. Never ship them to browser or APK. Set cURL/Guzzle timeouts so hung sockets do not pile up during radio congestion. Priced by devices and SMS send volume. You use your own phone and operator SMS credit.
PHP send checklist
- Env key; no Composer SDK product expectation.
- Confirm fields in Developer Center.
- Timeouts + client_ref.
- Persist message id; verify DLR.
- BYO Android + operator credit.
Next steps
Send one staff canary, then wire webhooks. Setup. Pricing. Downloads.
Related product pages
Jump to the live product docs for this topic—not another long-form article.
- SMS API documentationLive endpoint reference
- PHP REST send samplesPHP code examples
- device and SMS volume pricingPlans and allowances
- Android SMS gateway product guideDefinition, product, and how to buy





