PHP code example of victor78 / sms-reg
1. Go to this page and download the library: Download victor78/sms-reg 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/ */
victor78 / sms-reg example snippets
use Victor78/SmsReg/Requestor;
$api_key = 'somekey'; //необходимо получить в личном кабинете сервиса sms-reg
$requestor = new Requester($api_key);
$balance_response = $requestor->getBalance();
$balance = (float) $balance_response['balance'];
$list_response = $requestor->getList(1);
$services = $list_response['services'];