zembrowski/phpsms-poland

This package is abandoned and no longer maintained. No replacement package was suggested.

Send SMS via Polish mobile carriers using PHP.

0.2.0 2017-05-19 16:36 UTC

This package is not auto-updated.

Last update: 2020-11-24 03:06:08 UTC


README

Latest Version on Packagist Software License Total Downloads Build Status Quality Score Coveralls Status Codeship Status

Send SMS via Polish mobile carriers using Object-Orientated PHP.

Currently only Orange Multibox is supported.

Install

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';

Usage

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.

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT) applies. Please see License File for more information.