PHP code example of zhukmax / smsc
1. Go to this page and download the library: Download zhukmax/smsc 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/ */
zhukmax / smsc example snippets
try {
$sms = new \Zhukmax\Smsc\Api(
'test',
'123',
[
'https' => true,
'charset' => 'windows-1251',
'from' => '[email protected]',
'post' => true,
'debug' => '/home/user/smsc.log'
]
);
} catch (Exception $exception) {
exit($exception->getMessage());
}
class Sms extends \Zhukmax\Smsc\Api
{
public function balance()
{
var_dump($this->sendCmd('balance'));
}
}