flc/alidayu
阿里大于(鱼)API-SDK;适用任何PHP项目,包括Laravel、Yii、Thinkphp等...
54,689
181
Larablocks Analysis
flc/alidayu works with any PHP project: the latest release (v2.0.7, Apr 5, 2019) doesn't depend on Laravel.
Recommendation checks
Use with careUse with care: meets 1 of 3 checks.
- No release in the last 12 months (last: Apr 5, 2019)
- 428 downloads a month (needs 10,000)
- 181 GitHub stars (at least 100)
State
Quiet- Last stable release: Apr 5, 2019.
- No releases in the last 12 months.
- First released: Feb 18, 2016.
- Monthly downloads: 428, up 58% from six months ago.
- 3 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require flc/alidayu |
|
| Latest Version: | v2.0.7 |
| PHP: | >=5.4.0 |
| License: | MIT |
| Last Updated: | Dec 15, 2024 |
| Links: | GitHub · Packagist |
Maintainer: flc1125
阿里大于(鱼) - v2.0
PS:阿里短信 https://github.com/flc1125/dysms
更新
v2.0.6 (2017-08-12)
- fixed #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)
- 新增沙箱配置
功能
待测:因个人开发者,阿里大于权限相对较低。暂时无法测试;功能已开发,如测试可用,请告知~~
环境
- PHP >= 5.4
- composer
安装
composer require flc/alidayu
或
require '/path/to/alidayu/autoload.php';
使用
<?php
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
use Flc\Alidayu\Requests\IRequest;
// 配置信息
$config = [
'app_key' => '*****',
'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);
?>
帮助
支持
- 官方网址: https://www.alidayu.com/
- 官方API文档: https://api.alidayu.com/doc2/apiList.htm
- composer: https://getcomposer.org/
捐赠
如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~
![]() 微信 |
![]() 支付宝 |
License
- MIT
- Anti 996
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
670,032,257
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
465,816,364
607
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v2.0.7 | >=5.4.0 | MIT | |
| v2.0.6 | >=5.4.0 | MIT | |
| v2.0.5 | >=5.4.0 | MIT | |
| v2.0.4 | >=5.4.0 | MIT | |
| v2.0.3 | >=5.4.0 | MIT | |
| v2.0.2 | >=5.4.0 | MIT | |
| v2.0.1 | >=5.4.0 | MIT | |
| v2.0.0 | >=5.4.0 | MIT | |
| v1.0.0 |

