fotografde / xi-sms
Short messaging for PHP 5.3
0.3.0
2023-06-01 14:07 UTC
Requires
- php: >=5.3.3
- kriswallsmith/buzz: ^1
- messagebird/php-rest-api: ~1.1
- symfony/event-dispatcher: ^6
- twilio/sdk: ^7.3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
README
SMS library for PHP 5.3+.
Abstracts away the gateways. Just send'n go!
Pull requests are very welcome!
<?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);