PHP code example of ratatxt / php-sms
1. Go to this page and download the library: Download ratatxt/php-sms 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/ */
ratatxt / php-sms example snippets
Ratatxt\Sms::setToken('sampleToken');
$send = Ratatxt\Sms::send(array(
'origin' => '09751303274',
'address' => '09XXXXXXXXX',
'text' => 'hello from ratatxt'
));
print_r($send);
bash
composer