Package description: KaveNegar SMS sender package for laravel
Install via composer
composer require meysam-znd/kave-negar-sms-provider
php artisan vendor:publish --provider="MeysamZnd\KaveNegarSmsProvider\ServiceProvider"
use MeysamZnd\KaveNegarSmsProvider\KaveNegarSmsProvider;
use MeysamZnd\KaveNegarSmsProvider\ToOne;
use MeysamZnd\KaveNegarSmsProvider\ToMany;
use MeysamZnd\KaveNegarSmsProvider\Validation;
use MeysamZnd\KaveNegarSmsProvider\CallMessage;
$akiKey = 'your api key in kavenegar';
$data = [
'receptor' => 'receiver numbers',
'sender' => 'sender number',
'message' => 'your text message',
'date' => 'send time in UnixTime',
];
$sender = new KaveNegarSmsProvider(new ToOne());
// send and get the result
dd ( $sender->send($akiKey, $data) );
$akiKey = 'your api key in kavenegar';
$data = [
'receptor' => 'receiver numbers',
'sender' => 'sender number',
'message' => 'your text message',
'date' => 'send time in UnixTime',
];
$sender = new KaveNegarSmsProvider(new ToMany());
// send and get the result
dd ( $sender->send($akiKey, $data) );
$akiKey = 'your api key in kavenegar';
$data = [
'receptor' => 'receiver numbers', // string
'token' => 'your validation code',
'template' => 'your verify template name', // string
];
$sender = new KaveNegarSmsProvider(new Validation());
// send and get the result
dd ( $sender->send($akiKey, $data) );
$akiKey = 'your api key in kavenegar';
$data = [
'receptor' => 'receiver numbers', // string
'message' => 'your text message to call', // string
'repeat' => 1, //Repeat the message.
];
$sender = new KaveNegarSmsProvider(new CallMessage());
// send and get the result
dd ( $sender->send($akiKey, $data) );
If you discover any security related issues, please email instead of using the issue tracker.