Technical

SMS API Integration Guide for PHP Developers

Zan Communication Team February 18, 2025 SMS API PHP Integration Developer Guide

Integrating SMS into your PHP application is straightforward with Zan Communication's REST API. This guide will walk you through the complete integration process.

Prerequisites

  • PHP 8.0 or higher
  • cURL extension enabled
  • Zan Communication API key (get one from the dashboard)

Step 1: Get Your API Key

Log in to your Zan Communication dashboard and navigate to API Settings. Generate a new API key.

Step 2: Send Your First SMS

 [
        'method'  => 'POST',
        'header'  => "Authorization: Bearer $apiKey\r\nContent-Type: application/json",
        'content' => json_encode(['to' => '8801712345678', 'message' => 'Hello from Zan SMS!']),
    ]])
);
$result = json_decode($response, true);
echo $result['message_id'];
Get Started with SMS Today

Join hundreds of businesses using Zan Communication for reliable SMS delivery.

Contact Us