PHP code example of stee1cat / php-sms
1. Go to this page and download the library: Download stee1cat/php-sms library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stee1cat / php-sms example snippets
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();