An open API service indexing awesome lists of open source software.

https://github.com/zembrowski/phpsms-poland

Send SMS via Polish mobile carriers using PHP
https://github.com/zembrowski/phpsms-poland

orange php poland sms

Last synced: 5 months ago
JSON representation

Send SMS via Polish mobile carriers using PHP

Awesome Lists containing this project

README

          

# phpsms-poland

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE)
[![Total Downloads][ico-downloads]][link-downloads]
[![Build Status][ico-travis]][link-travis]
[![Quality Score][ico-scrutinizer]][link-scrutinizer]
[![Coveralls Status][ico-coveralls]][link-coveralls]
[![Codeship Status][ico-codeship]][link-codeship]

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

Currently only Orange Multibox is supported.

## Install

Via [Composer][link-composer]

``` bash
$ composer require zembrowski/phpsms-poland
```

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][link-composer]
``` php
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](examples) folder for advanced function usage.

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Credits

- [Krzysztof Tomasz Zembrowski][link-author]
- [All Contributors][link-contributors]

## License

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

[ico-version]: https://img.shields.io/packagist/v/zembrowski/phpsms-poland.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/zembrowski/phpsms-poland.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/zembrowski/phpsms-poland/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/g/zembrowski/phpsms-poland.svg?style=flat-square
[ico-coveralls]: https://coveralls.io/repos/github/zembrowski/phpsms-poland/badge.svg?branch=master
[ico-codeship]: https://codeship.com/projects/44743910-b0be-0133-3c40-7ee430441c87/status?branch=master

[link-packagist]: https://packagist.org/packages/zembrowski/phpsms-poland
[link-downloads]: https://packagist.org/packages/zembrowski/phpsms-poland
[link-travis]: https://travis-ci.org/zembrowski/phpsms-poland
[link-scrutinizer]: https://scrutinizer-ci.com/g/zembrowski/phpsms-poland
[link-coveralls]: https://coveralls.io/github/zembrowski/phpsms-poland
[link-codeship]: https://codeship.com/projects/132791

[link-composer]: https://getcomposer.org
[link-author]: https://github.com/zembrowski
[link-contributors]: ../../contributors