Start for free

How to Send an SMS using PHP Helper Library

Posted by on May 4, 2018 3:35:59 PM

This tutorial will guide you to send an SMS using the message API from the PHP Helper Library.

To follow this tutorial, you would need:

  • An account with . Please click here to signup
  • Some credits in your account to send SMS
  • PHP 5.5 and later
  • Your account’s Auth ID and Auth Token from your dashboard (As shown below)

How to Send SMS using Python -

Pro Tip: All users get free credits to try out the platform. After creating an account, simply verify your phone number from the dashboard and claim your free credits!


1. Get the Library

Quick Installation

To install the bindings via Composer, add the following to composer.json:

Then run


Manual Installation

Download the files:

And include autoload.php:


2. Send An SMS

Please follow the installation procedure and then run the following:

  • Replace the AUTH_ID and AUTH_TOKEN with your appropriate credentials
  • Make sure the destination and source numbers are set correctly

Astute readers will notice that the destination field is an array. This means that for sending SMS to multiple destinations (Bulk SMS), simply add comma separated entries to the destination array.

This is a REST API provided by  and has built-in support for long SMS and also supports multilingual (unicode) characters.

Access the Karix PHP Helper Library on Github

For detailed information, check out the message API Docs and messaging related FAQs

Topics: How-To, SMS, php

Subscribe Here!