Key Takeaways
- PHP + Android SMS gateway API means curl/Guzzle HTTPS JSON against the control plane — not a branded Composer “Complete PHP SDK” we sell.
- Live paths and fields live in Developer Center. /codebase-php is language samples only.
- HTTP 200 on send is accepted, not delivered. Persist the message id and parse DLR/webhooks.
- Isolate OTP deviceIds from promo bulk. Pace loops so one radio is not an ESP.
- Keys stay in env on the server. Never ship Bearer tokens in a mobile app.
- You bring the Android and operator SMS credit. We meter devices and send volume.
HTTPS/JSON from PHP, not a Composer SDK
PHP Android SMS gateway API in depth is how a PHP backend posts JSON with a Bearer token, stores the returned id, and reconciles DLR. It is not a NuGet-style product and not a “Download PHP SDK” page. Hub: Android SMS gateway API. Samples: PHP HTTPS/JSON. Live fields: Developer Center.
If your README says “install the SMS Gateway PHP SDK,” you invented a package we do not ship.
Samples vs product packaging
curl_setopt, Guzzle, or Symfony HttpClient are fine. Composer autoload of your thin client is fine. Do not brand it as an official multi-language SDK. C# cousin: C# HTTPS/JSON. Send recipe sibling: PHP send SMS.
Client duties
| Layer | Owns | Must not |
|---|---|---|
| PHP worker | Auth header, timeouts, idempotency key, persist id | Treat HTTP 200 as handset receipt |
| Control plane | Queue, device assignment, webhooks | Supply operator airtime |
| Android + SIM | GSM submit, DLR when carrier provides it | Survive empty prepaid without alerts |
Accept is not delivered
Wire status webhooks or poll by id. OTP isolation: OTP verification. External HTTP basics: PHP cURL manual.
Cost
Service pricing is devices plus SMS send volume. You bring the phone and operator SMS credit. Retries still debit the SIM. Free: 1 device / 300 SMS lifetime. Developer: 25,000 SMS/year. Starter / Professional / Business uncap platform volume with device caps 2 / 5 / 15; carrier fair-use still applies. Starter, Professional, and Business list Unlimited SMS as platform send volume; that is not unmetered carrier SMS.
Checklist
- Keys in env; never in front-end PHP templates.
- Timeouts + retry budget documented.
- Message id persisted before any user-facing success.
- DLR/webhook path tested; unknown statuses fail closed.
- OTP deviceIds isolated; Developer Center confirmed.
Next steps
PHP samples, devices and SMS volume, setup.
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




