ratatxt / php-sms
SMS Library for PHP. Simple SMS API that uses your regular simcard load
v1.0.0
2016-03-16 19:28 UTC
Requires
- php: >=5.3.0
- eden/curl: ^4.0
This package is not auto-updated.
Last update: 2025-01-10 19:32:33 UTC
README
You can sign up for a Ratatxt account at http://ratatxt.com.
Composer
You can install the bindings via Composer. Run the following command:
composer require ratatxt/php-sms
To use the bindings, use Composer's autoload:
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.
require_once('/path/to/ratatxt-php-sms/init.php');
Getting Started
Simple usage looks like:
Ratatxt\Sms::setToken('sampleToken'); $send = Ratatxt\Sms::send(array( 'origin' => '09751303274', 'address' => '09XXXXXXXXX', 'text' => 'hello from ratatxt' )); print_r($send);
Check examples here.
Documentation
Please see http://ratatxt.com/docs for up-to-date documentation.