meysam-znd/hostiran-sms-provider
Composer 安装命令:
composer require meysam-znd/hostiran-sms-provider
包简介
A hostiran sms provider
关键字:
README 文档
README
Package description: HostIran SMS sender package for laravel
Installation
Install via composer
composer require meysam-znd/hostiran-sms-provider
Publish package assets
php artisan vendor:publish --provider="MeysamZnd\HostiranSmsProvider\ServiceProvider"
Usage
Send sms to one number or few numbers
for sending sms to few numbers, separate those numbers with ", " as a string.
use MeysamZnd\HostiranSmsProvider\HostiranSmsProvider; use MeysamZnd\HostiranSmsProvider\ToOne; $url = 'https://rest.payamak-panel.com/api/SendSMS/SendSMS'; $data = [ 'username' => 'your username', 'password' => 'your password', 'from' => 'sender number', 'to' => 'receiver numbers', 'text' => 'your text message', 'isflash' => false, ]; $sender = new HostiranSmsProvider(new ToOne()) ; // send and get the result dd ( $sender->send($url, $data) );
Send sms to one, or many numbers with schedule
for sending sms to few numbers, separate those numbers with ", " as a string.
use MeysamZnd\HostiranSmsProvider\HostiranSmsProvider; use MeysamZnd\HostiranSmsProvider\ToMany; use MeysamZnd\HostiranSmsProvider\ToOne; $url = 'http://api.payamak-panel.com/post/schedule.asmx?wsdl'; $data = [ 'username' => 'your username', 'password' => 'your password', 'from' => 'sender number', 'to' => 'receiver numbers', 'text' => 'your text message', 'isflash' => false, 'scheduleDateTime' => 'your time', 'period' => 'Once', ]; $sender = new HostiranSmsProvider(new ToMany()) ; // send and get the result dd ( $sender->send($url, $data) );
Security
If you discover any security related issues, please email instead of using the issue tracker.
Credits
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-21