xi / sms
Short messaging for PHP 5.3
Installs: 74 790
Dependents: 1
Suggesters: 1
Security: 0
Stars: 10
Watchers: 15
Forks: 16
Open Issues: 6
Requires
- php: >=5.4.0
- kriswallsmith/buzz: ~0.7
- messagebird/php-rest-api: ~1.1
- symfony/event-dispatcher: ~2.0
Requires (Dev)
- league/phpunit-coverage-listener: ~1.1
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-18 11:21:10 UTC
README
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);