The multichannel messaging platform for successful business communication.

Connect with your customers anywhere in the world with BulkGate. Engage and interact with them via SMS gateway, Viber, and other solutions.


Here we will understand how to integrate BulkGate API and send bulk SMS in PHP step by step


Step 1:

Create the bulkget account and get the application id and token


step 2:

replace the application and and token in multiple_number.php file see the example below 

multiple_number.php

<?php

require_once './vendor/autoload.php';

$connection = new BulkGate\Message\Connection('', '');
$sender = new BulkGate\Sms\Sender($connection);

if (isset($_POST['numbers'])) {
    $numbers = $_POST['numbers'];
    $message = $_POST['message'];
    foreach (explode("+", $numbers) as $phone) {

        $response = new BulkGate\Sms\Message($phone, $message);
        if ($sender->send($response)) {
            $data = array(
                "response" => "success",
                "current" => '+' . $phone
            );

            echo json_encode($data);
        }
    }
} else {
    echo "Please add your number list and message!";
}