PHP code example of scaytrase / websms-php
1. Go to this page and download the library: Download scaytrase/websms-php 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/ */
scaytrase / websms-php example snippets
$driver = new JsonDriver();
$connection = new Connection($driver, 'username', 'secret');
// Optionally check that connection runs well
// $connection->verify();
// echo $connection->getBalance();
$message = new Message('+79991234567', 'test message');
$connection->send($message);
bash
composer