PHPackages                             vicens/alidayu-for-laravel - 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. vicens/alidayu-for-laravel

ActiveLibrary

vicens/alidayu-for-laravel
==========================

阿里云通信(阿里大于) For Laravel

v1.1(8y ago)123MITPHP

Since Jan 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vicens/alidayu-for-laravel)[ Packagist](https://packagist.org/packages/vicens/alidayu-for-laravel)[ RSS](/packages/vicens-alidayu-for-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a84a493dfd671a9985ad2b460862c6f133d9b5dfa6e5308e730c2758a84ed4b6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766963656e732f616c69646179752d666f722d6c61726176656c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vicens/alidayu-for-laravel/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a251e666e63e68b2cc50e26ceff7359de349943c836a91d80d1b72639e47564a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766963656e732f616c69646179752d666f722d6c61726176656c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vicens/alidayu-for-laravel/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/635525b1d497bb8b4ca1bc612c3d2baf6d707d922378d8aa79d2079727fa827b/68747470733a2f2f706f7365722e707567782e6f72672f766963656e732f616c69646179752d666f722d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/vicens/alidayu-for-laravel)[![Total Downloads](https://camo.githubusercontent.com/841d809c045a2cc2f1cdf285b389d5658cc4f60316ab524b9939fba3cc815ee2/68747470733a2f2f706f7365722e707567782e6f72672f766963656e732f616c69646179752d666f722d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/vicens/alidayu-for-laravel)[![License](https://camo.githubusercontent.com/1c4abdce9282c856dd000b37fb63d6037b5a64bf38a0ebb1ae489f5f4d693d3d/68747470733a2f2f706f7365722e707567782e6f72672f766963656e732f616c69646179752d666f722d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/vicens/alidayu-for-laravel)

### 阿里云通信(阿里大于) For Laravel

[](#阿里云通信阿里大于-for-laravel)

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

阿里云通信官网:

阿里云通信API文档:

阿里云通信SDK:

### 环境要求

[](#环境要求)

- [illuminate\\support](https://github.com/illuminate/support) ^5.1
- [vicens\\alidayu](http://github.com/vicens/alidayu) ^1.0

### 安装

[](#安装)

```
composer require vicens/alidayu-for-laravel
```

### 使用

[](#使用)

#### Laravel5.5以下需要注册服务提供者

[](#laravel55以下需要注册服务提供者)

在`config/app.php`的`provider`数组中, 添加`\Vicens\AlidayuForLaravel\Providers\AlidayuServiceProvider`:

```
'providers' => [
    // Other service providers...
    \Vicens\AlidayuForLaravel\Providers\AlidayuServiceProvider::class
]
```

#### 设置配置

[](#设置配置)

在`config/services.php`中,添加配置

```
return [
    // other service config
    'alidayu' => [
        'appKey' => '23356838',
        'appSecret' => '254fee5fbabe2e01be04581d855c9af3',
        '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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

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 ~0 days

Total

2

Last Release

3046d ago

### Community

Maintainers

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

---

Tags

alidayualiyunaliyuntongxinlaravellaravel

### Embed Badge

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

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

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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