fotografde/xi-sms

Short messaging for PHP 5.3

0.3.0 2023-06-01 14:07 UTC

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