New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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 care

Use 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

Latest Stable Version Total Downloads php>=5.4 License 996.icu LICENSE

PS:阿里短信 https://github.com/flc1125/dysms

更新

v2.0.6 (2017-08-12)
  • fixed #6
v2.0.5 (2017-01-25)
v2.0.4 (2016-10-25)
  • 新增自动载入功能(不依靠composer)
  • 新增Client::request快捷调用方法
v2.0.3 (2016-10-12)
  • 新增沙箱配置

功能

待测:因个人开发者,阿里大于权限相对较低。暂时无法测试;功能已开发,如测试可用,请告知~~

环境

安装

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);
?>

帮助

支持

捐赠

如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~

微信

支付宝

License

  • MIT
  • Anti 996

Related Packages

flc/dysms

阿里短信-适用Laravel、Yii、Thinkphp等任何PHP项目...

87,054 66
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
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