Skip to content
The TeleSign PHP SDK lets you easily integrate with our REST API.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples re-brand autoverify to app verify Jul 3, 2017
src bump version to v2.2.5 May 22, 2018
test Fixes issue #15 by passing JSON_FORCE_OBJECT to json_encode May 10, 2018
RELEASE Fixes issue #15 by passing JSON_FORCE_OBJECT to json_encode May 10, 2018
Vagrantfile share testing environments Apr 10, 2017
composer.json move version script out of the src dir May 2, 2017
composer.lock TSMD-7652 add some tests Aug 2, 2017
php_banner.jpg Updated and renamed banner images. May 12, 2017


TeleSign PHP SDK

TeleSign is a communications platform as a service (CPaaS) company, founded on security. Since 2005, TeleSign has been a trusted partner to the world’s leading websites and mobile applications, helping secure billions of end-user accounts. Today, TeleSign’s data-driven, cloud communications platform is changing the way businesses engage with customers and prevent fraud.

For more information about TeleSign, visit our website.


Code documentation is included in the SDK. Complete documentation, quick start guides and reference material for the TeleSign API is available within the TeleSign Standard Documentation.


$ composer require telesign/telesign

PHP 5.6+ is required for the TeleSign PHP SDK.


You will need a Customer ID and API Key in order to use TeleSign’s API. If you already have an account you can retrieve them from your account dashboard within the Portal. If you have not signed up yet, sign up here.


We make use of popular, feature-rich and well-tested open-source libraries to perform the underlying functionality of the SDK. These dependencies are managed by the community accepted package manager. If you are unable to add these additional third party dependencies to your project we have ensured that the SDK code is easy to read and can serve as sample code. We have also made sure that more complicated functions such as generateTelesignHeaders can be easily extracted from the SDK and used 'as is' in your project.

PHP Code Example: Messaging

Here is a basic code example with the JSON response.

require __DIR__ . "/vendor/autoload.php";

use telesign\sdk\messaging\MessagingClient;

$customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890";
$api_key = "EXAMPLE----TE8sTgg45yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw==";

$phone_number = "phone_number";
$message = "You're scheduled for a dentist appointment at 2:30PM.";
$message_type = "ARN";

$messaging_client = new MessagingClient($customer_id, $api_key);
$response = $messaging_client->message($phone_number, $message, $message_type);

  [reference_id] => B56A272B0784016889544CB4E6E70011
  [status] => Array
          [code] => 290
          [description] => Message in progress

  [external_id] =>

For more examples, see the examples folder or visit the TeleSign Standard Documentation.

You can’t perform that action at this time.