PHP SMS API: send and receive SMS from PHP

The package needs PHP 7.4 or newer with the cURL and JSON extensions. Keep the API key in an environment variable, never in code.

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.

There are guides for Laravel and WordPress, plus a WordPress plugin for WooCommerce order texts.

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.

More 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