PHPackages                             vicens/alidayu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vicens/alidayu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vicens/alidayu
==============

阿里云通信(阿里大于)SDK

v1.1.1(8y ago)537611MITPHPPHP &gt;=5.4

Since Dec 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vicens/alidayu)[ Packagist](https://packagist.org/packages/vicens/alidayu)[ RSS](/packages/vicens-alidayu/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (8)Used By (1)

[![Build Status](https://camo.githubusercontent.com/5b9beadf56e81b4e218a1506f6801f641ea1f18006389afd2ec335b5c7eaa070/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766963656e732f616c69646179752f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vicens/alidayu/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4b85fd1ec3172d6dec7328aadbe9a053fc0698744f4ba7af8e7943573c303bc8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766963656e732f616c69646179752f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vicens/alidayu/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/778fde250237668d75b971e75beea990e46bf36caf08bf0f10e82fdb1e99eedc/68747470733a2f2f706f7365722e707567782e6f72672f766963656e732f616c69646179752f762f737461626c65)](https://packagist.org/packages/vicens/alidayu)[![Total Downloads](https://camo.githubusercontent.com/5441e889bd5664a7d598b32424fd9c3a7410a83e44d79bf39cd4946b816b210b/68747470733a2f2f706f7365722e707567782e6f72672f766963656e732f616c69646179752f646f776e6c6f616473)](https://packagist.org/packages/vicens/alidayu)[![License](https://camo.githubusercontent.com/0561bbb10b197cd60eb94e788a03f4e1e186dee2139e91cb2760373123acb01e/68747470733a2f2f706f7365722e707567782e6f72672f766963656e732f616c69646179752f6c6963656e7365)](https://packagist.org/packages/vicens/alidayu)

阿里云通信(阿里大于)SDK
--------------

[](#阿里云通信阿里大于sdk)

阿里大于，是阿里通信旗下优质便捷的云通信服务平台，整合了三大运营商的通信能力，为开发者提供简洁易用的短信／语音API，三网合一通道，按需付费。阿里集团技术保障，实时、稳定、到达率高！

阿里云通信官网:

阿里云通信API文档:

### 环境要求

[](#环境要求)

- PHP &gt;= 5.4
- [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) &gt;=5.3

### 安装

[](#安装)

```
composer require vicens/alidayu
```

### 使用

[](#使用)

#### 设置配置

[](#设置配置)

```
use Vicens\Alidayu\Alidayu;
Alidayu::setConfig([
   'appKey' => '23356838',
   'appSecret' => '254fee5fbabe2e01be04581d855c9af3',
   // 使用HTTPs
   'secure' => false,
   // 沙盒环境
   'sandbox' => false
]);
```

#### 调用API

[](#调用api)

```
use Vicens\Alidayu\Alidayu;
// 发送短信通知
$sms = Alidayu::sms($recNum, $smsTemplateCode, $smsFreeSignName, $smsParam, $extend);
// 发送请求并返回响应
$response = $sms->send();

if ($response->success()) {
    // 接口返回成功
    print_r($response->getData());
} else {
    // 接口返回错误
    echo $response->getError();
}
```

### 已支持的接口列表

[](#已支持的接口列表)

- [发送短信通知](https://github.com/vicens/alidayu/blob/master/src/Request/Sms.php)
- [查询短信发送记录](https://github.com/vicens/alidayu/blob/master/src/Request/SmsQuery.php)
- [语音通知](https://github.com/vicens/alidayu/blob/master/src/Request/SingleCall.php)
- [文字转语音通知](https://github.com/vicens/alidayu/blob/master/src/Request/TtsSingleCall.php)
- [多方语音通话](https://github.com/vicens/alidayu/blob/master/src/Request/DoubleCall.php)
- [流量直充](https://github.com/vicens/alidayu/blob/master/src/Request/FlowCharge.php)
- [流量直充分省](https://github.com/vicens/alidayu/blob/master/src/Request/FlowChargeProvince.php)
- [流量直充查询](https://github.com/vicens/alidayu/blob/master/src/Request/FlowQuery.php)
- [流量直充档位表](https://github.com/vicens/alidayu/blob/master/src/Request/FlowGrade.php)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

7

Last Release

3023d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f56e1a31d88f41181e66aa512a0414117fd36656fec59cd6f5ac3928ede99fdb?d=identicon)[simonetoo](/maintainers/simonetoo)

---

Tags

alidayualismsaliyuntongxin

### Embed Badge

![Health badge](/badges/vicens-alidayu/health.svg)

```
[![Health](https://phpackages.com/badges/vicens-alidayu/health.svg)](https://phpackages.com/packages/vicens-alidayu)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
