icekristal/smsint-for-laravel
最新稳定版本:v2.0.0
Composer 安装命令:
composer require icekristal/smsint-for-laravel
包简介
SMSINT API for Laravel
README 文档
README
Integration service smsint for laravel
Documentation: https://lcab.smsint.ru/cabinet/json-doc/sender
install:
composer require icekristal/smsint-for-laravel
Add to config/services.php
'smsint' => [ 'token' => env('SMSINT_TOKEN'), 'url' => env('SMSINT_URL', "https://lcab.smsint.ru/json/"), 'version' => env('SMSINT_API_VERSION', "v1.0"), ],
Publish config:
php artisan vendor:publish --provider="Icekristal\SmsintForLaravel\SmsintServiceProvider" --tag='config'
Publish migrations:
php artisan vendor:publish --provider="Icekristal\SmsintForLaravel\SmsintServiceProvider" --tag='migrations'
Use:
php artisan migrate
Use SMS:
use Icekristal\SmsintForLaravel\Facades\Smsint; $phone = ["+79007778899", "+37008009900"]; $textMessage = "Test message integration for service smsint"; $service = Smsint::setRecipients($phone); $service->setSenderName("SenderName"); $service->setMessage($textMessage); $service->setIsOnlyValid(true); //true - no send, only check. $service->setParams([$params]); //set no required params in documentation $service->sendSms(); $infoStatus = Smsint::getSmsStatus(["2", "3"]);
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-25