phpsms-poland
![Software License][ico-license]
![Build Status][ico-travis]
![Coveralls Status][ico-coveralls]
, (*1)
Send SMS via Polish mobile carriers using Object-Orientated PHP., (*2)
Currently only Orange Multibox is supported., (*3)
Install
Via Composer, (*4)
``` bash
$ composer require zembrowski/phpsms-poland, (*5)
or
just download [src/Orange.php](src/Orange.php), [Requests for PHP](http://requests.ryanmccue.info), [simple_html_dom](https://github.com/EmanueleMinotto/simple-html-dom) and require all needed classes like this:
``` php
require_once 'Requests.php';
Requests::register_autoloader();
require_once 'simple_html_dom.php';
require_once 'Orange.php';
Usage
With Composer
``` php
require_once 'vendor/autoload.php';, (*6)
$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();
}
```, (*7)
See examples folder for advanced function usage., (*8)
Change log
Please see CHANGELOG for more information what has changed recently., (*9)
Contributing
Please see CONTRIBUTING for details., (*10)
Credits
License
The MIT License (MIT) applies. Please see License File for more information., (*11)