PHP Ratatxt
You can sign up for a Ratatxt account at http://ratatxt.com., (*1)
Composer
You can install the bindings via Composer. Run the following command:, (*2)
composer require ratatxt/php-sms
To use the bindings, use Composer's autoload:, (*3)
require_once('vendor/autoload.php');
Manual Installation
If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file., (*4)
require_once('/path/to/ratatxt-php-sms/init.php');
Getting Started
Simple usage looks like:, (*5)
Ratatxt\Sms::setToken('sampleToken');
$send = Ratatxt\Sms::send(array(
'origin' => '09751303274',
'address' => '09XXXXXXXXX',
'text' => 'hello from ratatxt'
));
print_r($send);
Check examples here., (*6)
Documentation
Please see http://ratatxt.com/docs for up-to-date documentation., (*7)