mastani/laravel-sorna-sms
Composer 安装命令:
composer require mastani/laravel-sorna-sms
包简介
Sorna SMS laravel integration
关键字:
README 文档
README
Only available for sornasms.net users
Sorna SMS laravel client
Installation in Laravel 5.5 and up
$ composer require mastani/laravel-sorna-sms
Run the command below to publish the package config file config/sornasms.php:
php artisan vendor:publish
The package will automatically register itself.
Installation in Laravel 5.4
$ composer require mastani/laravel-sorna-sms
Next up, the service provider must be registered:
// config/app.php 'providers' => [ ... mastani\SornaSMS\SornaSMSServiceProvider::class, ];
Usage
$sms = new SornaSMS(); $result = $sms->getSystemCredit(); // return Array( [success] => 1 [result] => 105000 ) $result = $sms->sendSMS('mobile number', 'message'); // return Array( [success] => 1 [result] => 8830401037900810478 )
Function
| Function | Description |
|---|---|
| getSystemCredit() | Get account credit. |
| sendSMS(mobile, message) | Send single SMS. |
| sendSMS([mobiles], [messages]) | Send multiple SMS. |
| sendSMS021(mobile, message) | Send single SMS with 021 line (if you owned one). |
| sendSMS021([mobiles], [messages]) | Send multiple SMS with 021 line (if you owned one). |
| sendSMSBlacklist(mobile, message) | Send single SMS with blacklist module. |
| sendSMSBlacklist([mobiles], [messages]) | Send multiple SMS with blacklist module. |
Error messages
| Error | Description |
|---|---|
| -99 | اتمام زمان مجاز جهت ارسال پیامک |
| -100 | Reference id مورد نظر یافت نشد. |
| -101 | احراز کاربر موفقیت آمیز نبود. |
| -102 | نام کاربری یافت نشد. |
| -103 | شماره کاربری اشتباه یا در بین بازه شماره های کاربر نیست. |
| -104 | اعتبار کاربر کم است. |
| -105 | فرمت درخواست اشتباه است. |
| -106 | تعداد Reference id ها بیش از 1000 عدد است. |
| -107 | شماره گیرنده پیام اشتباه است. |
| -108 | شماره گیرنده پیام اشتباه است. |
| -98 | شماره گیرنده در لیست سیاه مخابرات قرار دارد. |
| -111 | شماره گیرنده در لیست سیاه مخابرات قرار دارد. |
| -112 | شماره لیست سیاه یافت نشد. |
| -115 | برنامه ارسالی در حال اجرا میباشد. امکان ارسال همزمان وجود ندارد. |
License
The MIT License (MIT). Please see License File for more information.
mastani/laravel-sorna-sms 适用场景与选型建议
mastani/laravel-sorna-sms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 2, 最近一次更新时间为 2018 年 10 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sms」 「laravel」 「sorna-sms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mastani/laravel-sorna-sms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mastani/laravel-sorna-sms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mastani/laravel-sorna-sms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
SDK for payment gateway PlatbaMobilom.sk for PHP7.0
Extensible library for building notifications and sending them via different delivery channels.
yii2-sms expand
Alfabank REST API integration
A fork of simplesoftwareio/simple-sms with Verimor driver.
Aakash Sms Provider Api Wrapper
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-10