PHP SMS API: send and receive SMS from PHP
SMS Gora SMS Gateway has an official PHP client on Packagist, tekservix/smsgora, and a plain REST API you can call with cURL. Send texts from your own Android phone, read delivery reports and receive replies by webhook.
- Composer package
- cURL example
- Webhook verification
- Laravel + WordPress
Install the PHP SMS API client
composer require tekservix/smsgoraThe package needs PHP 7.4 or newer with the cURL and JSON extensions. Keep the API key in an environment variable, never in code.
Send an SMS from PHP with cURL
$ch = curl_init('https://tekservix.com/smsgora/api/v1/send-sms');
curl_setopt_array($ch, [
CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: ' . getenv('SMSGORA_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode(['recipients' => ['+447700900123'], 'message' => 'Hello from PHP']),
]);
echo curl_exec($ch);
Receive SMS in PHP
Incoming texts and delivery events arrive as signed JSON webhooks. Read the raw body with file_get_contents('php://input'), check the HMAC signature header against your webhook secret, then answer quickly with HTTP 200. The PHP guide has the full verification code.
Laravel, WordPress and WooCommerce
There are guides for Laravel and WordPress, plus a WordPress plugin for WooCommerce order texts.
Pay per phone, not per message
Unlimited SMS on every plan. Your mobile operator bills the texts to your SIM, like messages you send by hand.
Basic
For one phone handling alerts, codes and replies.
- Link 1 Android phone (Android 7.0+)
- Unlimited SMS: you only pay your usual SIM costs
- Your own number and SIM, no sender approval
- Full REST API: send, receive and schedule
- Signed webhooks with automatic retries
- Two-way inbox: reply from your browser
- Bulk SMS campaigns from a CSV with {{name}} personalisation
- Keyword auto-replies, 24/7
- Automatic STOP and START opt-outs
- Dual-SIM selection
- Offline queue: messages send when the phone reconnects
- Live battery, signal and queue status
- Email support
Pro
For teams using several SIMs, numbers or networks.
- Link 3 Android phones (Android 7.0+)
- Unlimited SMS: you only pay your usual SIM costs
- Your own number and SIM, no sender approval
- Full REST API: send, receive and schedule
- Signed webhooks with automatic retries
- Two-way inbox: reply from your browser
- Bulk SMS campaigns from a CSV with {{name}} personalisation
- Keyword auto-replies, 24/7
- Automatic STOP and START opt-outs
- Dual-SIM selection
- Offline queue: messages send when the phone reconnects
- Live battery, signal and queue status
- Email support
Business
For companies sending across branches or countries.
- Link 10 Android phones (Android 7.0+)
- Unlimited SMS: you only pay your usual SIM costs
- Your own number and SIM, no sender approval
- Full REST API: send, receive and schedule
- Signed webhooks with automatic retries
- Two-way inbox: reply from your browser
- Bulk SMS campaigns from a CSV with {{name}} personalisation
- Keyword auto-replies, 24/7
- Automatic STOP and START opt-outs
- Dual-SIM selection
- Offline queue: messages send when the phone reconnects
- Live battery, signal and queue status
- Priority support
Enterprise
For high-volume operations running many phones.
- Link 30 Android phones (Android 7.0+)
- Unlimited SMS: you only pay your usual SIM costs
- Your own number and SIM, no sender approval
- Full REST API: send, receive and schedule
- Signed webhooks with automatic retries
- Two-way inbox: reply from your browser
- Bulk SMS campaigns from a CSV with {{name}} personalisation
- Keyword auto-replies, 24/7
- Automatic STOP and START opt-outs
- Dual-SIM selection
- Offline queue: messages send when the phone reconnects
- Live battery, signal and queue status
- Dedicated support
PHP SMS API questions
Which PHP version do I need?
PHP 7.4 or newer for the client library. The cURL example works on any PHP with cURL.
Is there a Composer package?
Yes: composer require tekservix/smsgora.
Can PHP receive SMS?
Yes, through signed webhooks sent to a PHP endpoint on your server.
Does it work with shared hosting?
Yes, as long as outgoing HTTPS requests are allowed.
Send your first SMS from PHP
Free for 3 days with no card, then from $3.99/month. Your operator charges the SIM for the texts.
Get startedMore about SMS Gora: SMS Gora overview · SMS API · Send SMS API · SMS broadcast API · Free SMS API · SMS verification API · Bulk SMS · Bulk SMS for business · Bulk SMS marketing · Bulk SMS software · Bulk SMS pricing · OTP SMS · SMS gateway provider · Enterprise SMS gateway · SMS gateway pricing · International SMS gateway · Twilio alternative · TextBee alternative · Email to SMS gateway · What is SMS API · Send and receive SMS API · Best SMS API · SMS API pricing · How to send bulk SMS · Bulk SMS provider · Online SMS gateway · SMS gateway service · SMS gateway GitHub · SMS OTP service · OTP SMS India · SMS gateway USA · SMS gateway Australia · UAE SMS gateway · API documentation · Install the Android app