ofcold/luminous-sms
Composer 安装命令:
composer require ofcold/luminous-sms
包简介
A powerful international SMS push.
关键字:
README 文档
README
A powerful international SMS push.Features
- Support the current market more than service providers.
- Simple configuration can flexibly increase or decrease service providers.
- Unified return format, easy to log and monitor.
- Automatic polling Select available service providers.
- Full support for various api interfaces of vendors.
- Support console operation API.
Platform support
| 供应商 | 开发状态 | 时间 |
|---|---|---|
| 腾讯云 SMS | ✅ | 2018-06-20 |
| 云片 | 🕗 | 2018-06-21 |
| 阿里大鱼 | ❌ | -- |
| 百度云 | ❌ | -- |
Environmental
- PHP >= 7.1
Intalling
$ composer require ofcold/luminous-sms
Usage
use Ofcold\LuminousSMS\LuminousSMS; use Ofcold\LuminousSMS\Helpers; use Ofcold\LuminousSMS\Contracts\MessageInterface; $sms = new LuminousSMS(include __DIR__ . '/resources/config/sms.php'); // ------------------------------------------------------------------------------------------------ // Send Message. $result = $sms->sender(function($messager) { $messager ->setMobilePhone('18898726543') ->setType(Ofcold\LuminousSMS\Contracts\MessageInterface::VOICE_MESSAGE) ->setContent('您的验证码是{code}, 验证码将在2分钟后失效!请及时使用。') ->setPaserData(['code' => rand(1000, 9999)]); }); var_dump($result); // ------------------------------------------------------------------------------------------------ // Signature manager // Add //$resuts = $sms->createHandler('qcloud')->getSignature('add', '衣衣布舍'); // // Query //$resuts = $sms->createHandler('qcloud')->getSignature('query', [15858, 15859]); // // Edit $resuts = $sms->createHandler('qcloud')->getSignature('edit', '150986', '你是哪里来'); var_dump($resuts);
License
MIT
ofcold/luminous-sms 适用场景与选型建议
ofcold/luminous-sms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 9, 最近一次更新时间为 2018 年 05 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sms」 「PHP7」 「luminous sms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ofcold/luminous-sms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ofcold/luminous-sms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ofcold/luminous-sms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
php7ify is a project that brings new php7 classes and exceptions to php 5.x.
Creates an XML file for a Single Euro Payments Area (SEPA) Credit Transfer.
It's a barebone security class written on PHP
SDK for payment gateway PlatbaMobilom.sk for PHP7.0
Extensible library for building notifications and sending them via different delivery channels.
yii2-sms expand
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-18