PHP SDK

PHP SMS API — SMSGo Composer SDK

Send SMS, OTP, and transactional alerts with a few lines of PHP. Composer SDK, signed webhooks, and 3 free SMS to test.

Installation
composer require orynlabs/smsgo
Send SMS
<?php
require 'vendor/autoload.php';

use Orynlabs\SMSGo\Client;
use Orynlabs\SMSGo\Webhook;

$smsgo = new Client(getenv('SMSGO_KEY'));

$sms = $smsgo->send(
    phone: '+5511999990000',
    message: 'Your SMSGo code is 184502',
);

echo $sms->id . ' ' . $sms->status;
Signed webhook
<?php
require 'vendor/autoload.php';

use Orynlabs\SMSGo\Webhook;

$rawBody = file_get_contents('php://input');
$signature = $_SERVER['HTTP_X_SMSGO_SIGNATURE'] ?? null;
$secret = getenv('SMSGO_WEBHOOK_SECRET');

if (!Webhook::verifySignature($rawBody, $signature, $secret)) {
    http_response_code(401);
    exit;
}

$data = json_decode($rawBody, true);
echo $data['event'] . ' — ' . $data['data']['status'];

Why use the SMSGo PHP SDK?

  • Modern PHP SDK with named arguments and strict typing.
  • HMAC-SHA256 signed webhooks; verify X-SMSGo-Signature in your controller.
  • Production-equivalent test mode with the same statuses, responses, and automatic retries.
  • Volume pricing from US$0.0479/SMS — prepaid credits, billed in USD, no monthly fee.
Test free with 3 SMS

Frequently asked questions

Do I need a card to test?

No. When you create an account, you receive 3 free SMS, no credit card and no monthly fee.

Do credits expire?

No. SMSGo prepaid credits never expire. Buy them when needed and use them at your own pace.

How does test mode work?

Use the test SMSGo-key from the dashboard. The flow, delivery statuses, and webhooks match production, so your integration is ready before you spend real credits.

Which sending methods does the API support?

Single send (/v1/sms/send/single), bulk send (/v1/sms/send/bulk), scheduling, and custom templates.

Is it compatible with Laravel?

Yes. The orynlabs/smsgo package supports Laravel, Symfony, and any modern PHP application using Composer.

Ready to integrate?

Create your free account and receive 3 SMS to test the SMSGo PHP API.

Create free account