Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ofcold/luminous-sms
A powerful international SMS push.
https://github.com/ofcold/luminous-sms
codeigniter juhe laravel luminous php qcloud sms symfony yii yunpian
Last synced: about 1 month ago
JSON representation
A powerful international SMS push.
- Host: GitHub
- URL: https://github.com/ofcold/luminous-sms
- Owner: ofcold
- Created: 2018-01-22T09:12:31.000Z (almost 7 years ago)
- Default Branch: 3.0
- Last Pushed: 2018-08-28T04:29:35.000Z (about 6 years ago)
- Last Synced: 2024-10-08T15:05:57.273Z (about 1 month ago)
- Topics: codeigniter, juhe, laravel, luminous, php, qcloud, sms, symfony, yii, yunpian
- Language: PHP
- Size: 93.8 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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](https://cloud.tencent.com/product/sms)|:white_check_mark:|2018-06-20|
|[云片](https://www.yunpian.com)|:clock8:|2018-06-21|
|[阿里大鱼](https://www.alidayu.com)|:x:|--|
|[百度云](https://cloud.baidu.com)|:x:|--|## Environmental
- PHP >= 7.1
## Intalling
```shell
$ composer require ofcold/luminous-sms
```## Usage
```php
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);
```
## LicenseMIT