Skip to content

PHP SDK overview

The official PHP SDK provides a typed, object-oriented interface to the Rayo SMS Gateway API. It supports PHP 7.4 through current PHP releases and uses Guzzle 7 for HTTP requests.

Messaging

Send immediately or schedule delivery using an associative array or the SmsRequest value object.

Delivery lifecycle

Check account credit balance, query message delivery status, and cancel schedules.

Secure callbacks

Verify HMAC-SHA256 webhook signatures and parse GET or POST callback payloads.

  • PHP 7.4 or later
  • The PHP JSON extension
  • Composer

Install rayo-sms/rayo-sms-php-sdk from Packagist:

Terminal window
composer require rayo-sms/rayo-sms-php-sdk

The project is open source under the MIT License. Browse the source and report issues on GitHub.