1. Go to this page and download the library: Download rame0/pushsms-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rame0 / pushsms-api example snippets
use rame0\API\PushSMS\PushSMS;
use rame0\API\PushSMS\Endpoints\BulkDelivery;
use rame0\API\PushSMS\Types\DispatchRoutingTypes;
// Initialize client
$client = new PushSMS('<API_TOKEN>');
// Initialize endpoint
$endpoint = new BulkDelivery(
'Your SMS message',
['+71234567890', '+71234567891', '+71234567892'],
);
// Set endpoint parameters
$endpoint
->setSenderName($_ENV['SENDER_NAME'])
->setDispatchRouting([
DispatchRoutingTypes::WHATSAPP,
DispatchRoutingTypes::TELEGRAM_BOT,
DispatchRoutingTypes::TELEGRAM_NUMBER
]);
$response = $client->request($endpoint);
use rame0\API\PushSMS\PushSMS;
use rame0\API\PushSMS\Endpoints\Delivery;
use rame0\API\PushSMS\Types\DispatchRoutingTypes;
// Initialize client
$client = new PushSMS('<API_TOKEN>');
// Initialize endpoint
$endpoint = new Delivery(
'Your SMS message',
'+71234567890',
);
// Set endpoint parameters
$endpoint
->setSenderName($_ENV['SENDER_NAME'])
->setDispatchRouting([
DispatchRoutingTypes::WHATSAPP,
DispatchRoutingTypes::TELEGRAM_BOT,
DispatchRoutingTypes::TELEGRAM_NUMBER
]);
$response = $client->request($endpoint);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.