https://github.com/flc1125/alidayu
阿里大于(鱼)API接口-SDK
https://github.com/flc1125/alidayu
alidayu api composer php sms
Last synced: 15 days ago
JSON representation
阿里大于(鱼)API接口-SDK
- Host: GitHub
- URL: https://github.com/flc1125/alidayu
- Owner: flc1125
- License: mit
- Created: 2016-07-12T06:33:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-15T01:17:01.000Z (4 months ago)
- Last Synced: 2025-04-04T10:07:50.803Z (21 days ago)
- Topics: alidayu, api, composer, php, sms
- Language: PHP
- Homepage: http://flc.io/2016/09/563.html
- Size: 73.2 KB
- Stars: 181
- Watchers: 8
- Forks: 61
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: docs/support.md
Awesome Lists containing this project
README
# 阿里大于(鱼) - v2.0
[](https://packagist.org/packages/flc/alidayu)
[](https://packagist.org/packages/flc/alidayu)

[](https://packagist.org/packages/flc/alidayu)
[](https://996.icu)
[](https://github.com/996icu/996.ICU/blob/master/LICENSE)> PS:**阿里短信** [https://github.com/flc1125/dysms](https://github.com/flc1125/dysms)
## 更新
#### v2.0.6 (2017-08-12)
- fixed [#6](https://github.com/flc1125/alidayu/issues/6)
#### v2.0.5 (2017-01-25)
- 修复autoload.php https://github.com/flc1125/alidayu/issues/5
#### v2.0.4 (2016-10-25)
- 新增自动载入功能(不依靠composer)
- 新增Client::request快捷调用方法#### v2.0.3 (2016-10-12)
- 新增沙箱配置
## 功能
- `通过` [短信发送](docs/alibaba_aliqin_fc_sms_num_send.md)
- `通过` [短信发送记录查询](docs/alibaba_aliqin_fc_sms_num_query.md)
- `通过` [文本转语音通知](docs/alibaba_aliqin_fc_tts_num_singlecall.md)
- `通过` [语音通知](docs/alibaba_aliqin_fc_voice_num_singlecall.md)
- `待测` [多方通话](docs/alibaba_aliqin_fc_voice_num_doublecall.md)
- `待测` [流量直充](docs/alibaba_aliqin_fc_flow_charge.md)
- `待测` [流量直充查询](docs/alibaba_aliqin_fc_flow_query.md)
- `待测` [流量直充分省接口](docs/alibaba_aliqin_fc_flow_charge_province.md)
- `通过` [流量直充档位表](docs/alibaba_aliqin_fc_flow_grade.md)
- [辅助方法](docs/support.md)> **`待测`**:因个人开发者,阿里大于权限相对较低。暂时无法测试;功能已开发,如测试可用,请告知~~
## 环境
- PHP >= 5.4
- [composer](https://getcomposer.org/)## 安装
```shell
composer require flc/alidayu
```或
```php
require '/path/to/alidayu/autoload.php';
```## 使用
```php
'*****',
'app_secret' => '************',
// 'sandbox' => true, // 是否为沙箱环境,默认false
];// 使用方法一
$client = new Client(new App($config));
$req = new AlibabaAliqinFcSmsNumSend;$req->setRecNum('13312311231')
->setSmsParam([
'number' => rand(100000, 999999)
])
->setSmsFreeSignName('叶子坑')
->setSmsTemplateCode('SMS_15105357');$resp = $client->execute($req);
// 使用方法二
Client::configure($config); // 全局定义配置(定义一次即可,无需重复定义)$resp = Client::request('alibaba.aliqin.fc.sms.num.send', function (IRequest $req) {
$req->setRecNum('13312311231')
->setSmsParam([
'number' => rand(100000, 999999)
])
->setSmsFreeSignName('叶子坑')
->setSmsTemplateCode('SMS_15105357');
});// 返回结果
print_r($resp);
print_r($resp->result->model);
?>
```## 帮助
- 意见、BUG反馈: https://github.com/flc1125/alidayu/issues
## 支持
- 官方网址: https://www.alidayu.com/
- 官方API文档: https://api.alidayu.com/doc2/apiList.htm
- composer: https://getcomposer.org/## 捐赠
如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~
微信
支付宝
## License
- MIT
- Anti 996