PHPackages                             draguo/dayusms - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. draguo/dayusms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

draguo/dayusms
==============

阿里大鱼短信发送

1.0(9y ago)3359MITPHP

Since Sep 3Pushed 8y ago2 watchersCompare

[ Source](https://github.com/draguo/dayusms)[ Packagist](https://packagist.org/packages/draguo/dayusms)[ RSS](/packages/draguo-dayusms/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

不再更新
----

[](#不再更新)

推荐使用 [easy-sms](https://github.com/overtrue/easy-sms) easywechat 作者出品，功能完善

阿里大于发送短信包 for laravel
----------------------

[](#阿里大于发送短信包-for-laravel-)

Laravel 应用
----------

[](#laravel-应用)

### 安装

[](#安装)

```
composer require "draguo/dayusms"
```

### 配置

[](#配置)

修改 `config/services.php`
添加

```
    'dayusms' => [
        'key' => '',
        'secret' => '',
        'signName' => '填写通过审核的签名',
    ],
```

### 注册 `ServiceProvider`:

[](#注册-serviceprovider)

```
Draguo\Dayusms\DayusmsServiceProvider::class
```

### 使用

[](#使用)

```
$sms = app('sms');
$sms->send($phone,$smsParam,$templateCode);

```

\###函数使用相关
$phone strong 接收的号码
$smsParam array 短信模板，详情请参考 [开发文档](https://api.alidayu.com/doc2/apiDetail.htm?spm=a3142.7395905.4.6.bQRfgO&apiId=25450)
$templateCode string 例如：'SMS\_585014' ,请到配置文件中配置默认的值
$signName string 例如：'大鱼', 请到配置文件中配置默认的值，这个字段通常情况下不会改变

```
public function send($phone,$smsParam,$templateCode=0,$signName=0)
```

### 错误处理

[](#错误处理)

```
发送失败会在 Laravel 的日志中记录基本的错误信息，详细信息请查看返回值，
成功之后会返回 code = 0

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

2

Last Release

3478d ago

Major Versions

0.0.2 → 1.02016-12-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/72f9a53e815a82dcedc10a1e865bc34defeed186b7a0b931d67885d6b6b251b5?d=identicon)[draguo](/maintainers/draguo)

---

Top Contributors

[![draguo](https://avatars.githubusercontent.com/u/12272760?v=4)](https://github.com/draguo "draguo (12 commits)")

### Embed Badge

![Health badge](/badges/draguo-dayusms/health.svg)

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

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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