Send SMS via Polish mobile carriers using Object-Orientated PHP.
Currently only Orange Multibox is supported.
Via Composer
$ composer require zembrowski/phpsms-poland
or
just download src/Orange.php, Requests for PHP, simple_html_dom and require all needed classes like this:
require_once 'Requests.php';
Requests::register_autoloader();
require_once 'simple_html_dom.php';
require_once 'Orange.php';
With Composer
require_once 'vendor/autoload.php';
$login = 'login';
$password = 'password';
$recipient = '501234567';
$text = 'It works! Thanks :)';
try {
$sms = new zembrowski\SMS\Orange();
$sms->login($login, $password);
$sms->send($recipient, $text);
} catch (Exception $e) {
echo '[ERROR] ' . $e->getMessage();
}
See examples folder for advanced function usage.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT) applies. Please see License File for more information.