Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 388 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 388 Bytes

Xi SMS

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);