use stee1cat\PhpSms\GateFactory;
use stee1cat\PhpSms\Message;
$sender = GateFactory::create('SmsAero');
$sender->setUser('<login>');
$sender->setPassword('<password>');
$message = new Message();
$message->setTo('75551234567');
$message->setFrom('php-sms');
$message->setText('Message');
$sender->setMessage($message);
$sender->send();
stee1cat / php-sms Goto Github PK
View Code? Open in Web Editor NEWA PHP library to send messages via SMS gates