PHPackages                             hyancat/aliyun-direct-mail - 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. hyancat/aliyun-direct-mail

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

hyancat/aliyun-direct-mail
==========================

阿里云邮件推送 for Laravel.

v0.3.0(6y ago)2710.0k16[1 issues](https://github.com/HyanCat/aliyun-direct-mail/issues)MITPHPPHP &gt;=7.0

Since Oct 8Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/HyanCat/aliyun-direct-mail)[ Packagist](https://packagist.org/packages/hyancat/aliyun-direct-mail)[ RSS](/packages/hyancat-aliyun-direct-mail/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Aliyun DirectMail for Laravel 5/6/7
===================================

[](#aliyun-directmail-for-laravel-567)

使用阿里云的 DirectMail 发送邮件。

当前实现仅支持[单一发信接口](https://help.aliyun.com/document_detail/29444.html)。

安装
--

[](#安装)

1. 使用 `composer` 安装文件

    ```
    composer require hyancat/aliyun-direct-mail:dev-master
    ```
2. 在 `config/services.php` 中添加如下配置:

    ```
    ...
    'directmail' => [
    	'app_key'    => env('DIRECT_MAIL_APP_KEY'),
    	'app_secret' => env('DIRECT_MAIL_APP_SECRET'),
    	'region'     => 'cn-beijing',
    	'account'    => [
    		'alias' => env('DIRECT_MAIL_ACCOUNT_ALIAS'),
    		'name' => env('DIRECT_MAIL_ACCOUNT_NAME'),
    	]
    ],
    ...
    ```

    具体配置含义请参考[官方文档](https://help.aliyun.com/document_detail/29444.html)。

    请根据需要在`.env`中创建环境配置。
3. 修改 `default` 为 `directmail`（或者`.env` 中的 `MAIL_MAILER`）。

    > 如果是 Laravel 5.x/6.x，应该是修改 `config/mail.php` 中的 `driver` 为 `directmail`（或者 `.env` 中的 `MAIL_DRIVER`）。

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance40

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

3

Last Release

2250d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

v0.2.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3190081?v=4)[流光不加少](/maintainers/HyanCat)[@HyanCat](https://github.com/HyanCat)

---

Top Contributors

[![HyanCat](https://avatars.githubusercontent.com/u/3190081?v=4)](https://github.com/HyanCat "HyanCat (5 commits)")

---

Tags

aliyundeprecateddirectmaillaravelmail

### Embed Badge

![Health badge](/badges/hyancat-aliyun-direct-mail/health.svg)

```
[![Health](https://phpackages.com/badges/hyancat-aliyun-direct-mail/health.svg)](https://phpackages.com/packages/hyancat-aliyun-direct-mail)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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