taufikterdidik / tcastsms
TCASTSMS Gateway API
0.1.0
2018-10-18 06:28 UTC
Requires
- php: >=5.6
- ext-json: *
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^6
This package is not auto-updated.
Last update: 2024-10-02 21:01:42 UTC
README
Penggunaan
<?php
require __DIR__.'/vendor/autoload.php';
$config = [
'base_uri' => 'http://ipserver:20003/',
'account' => '***',
'password' => '***'
];
$sms = new \taufikterdidik\tcastsms\SMS($config);
echo 'Saldo: '.$sms->getBalance();
$sms->setMessage('Test Kirim SMS');
$sms->addNumber('08123456789');
if($sms->send()){
echo 'sukses kirim sms';
} else {
echo 'gagal kirim sms';
}