PHP code example of liagkos / yuboto-sms
1. Go to this page and download the library: Download liagkos/yuboto-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/ */
liagkos / yuboto-sms example snippets
use Liagkos\SMS\Yuboto\Request;
d = 'Command';
$params = ['param1' => 'value1', 'param2' => 'value2'];
$response = Request::exec($token, $command, $params);
if ($response['success']) {
print_r(Response::<ResponseObject>($response['response']));
} else {
echo 'Error (' . $response['type'] . '): ' . $response['msg'] . ' ('. $response['code'] .')';
}