SMS abstraction for PHP
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
library/Xi/Sms
tests
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Xi SMS

SMS library for PHP 5.3+.

Abstracts away the gateways. Just send'n go!

Pull requests are welcome! I'm not very actively maintaining this, though, and am the worst possible maintainer anyways, so sorry if your pull requests take their time :(

<?php

use Xi\Sms\SmsService;
use Xi\Sms\SmsMessage;
use Xi\Sms\Gateway\MessageBirdGateway;

$gw = new MessageBirdGateway('my_apikey');
$service = new SmsService($gw);

$msg = new SmsMessage('message', 'sender', 'receiver_msisdn');
$service->send($msg);