PHPackages                             rjyxz/aliyun-php-sdk-dm - 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. rjyxz/aliyun-php-sdk-dm

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

rjyxz/aliyun-php-sdk-dm
=======================

阿里云邮件推送服务 DirectMail。

41.2kPHP

Since Jul 3Pushed 8y agoCompare

[ Source](https://github.com/rjyxz/aliyun-php-sdk-dm)[ Packagist](https://packagist.org/packages/rjyxz/aliyun-php-sdk-dm)[ RSS](/packages/rjyxz-aliyun-php-sdk-dm/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

aliyun-php-sdk-dm
=================

[](#aliyun-php-sdk-dm)

---

阿里云邮件推送服务 DirectMail。

安装
--

[](#安装)

```
composer require rjyxz/aliyun-php-sdk-dm
```

例子
--

[](#例子)

```
use Dm\Request\V20151123\SingleSendMailRequest;

function sendMail(){
    $iClientProfile = \DefaultProfile::getProfile("cn-hangzhou", "", "");

    $client = new \DefaultAcsClient($iClientProfile);
    $request = new SingleSendMailRequest();

    $request->setAccountName("控制台创建的发信地址");
    $request->setFromAlias("发信人昵称");
    $request->setAddressType(1);
    $request->setTagName("控制台创建的标签");
    $request->setReplyToAddress("true");
    $request->setToAddress("目标地址");
    $request->setSubject("邮件主题");
    $request->setHtmlBody("邮件正文");

    try {
        $response = $client->getAcsResponse($request);
        print_r($response);
    }
    catch (\ClientException  $e) {
        print_r($e->getErrorCode());
        print_r($e->getErrorMessage());
    }
}
```

阿里云邮件推送
-------

[](#阿里云邮件推送)

服务地址

邮件推送 &gt; API 参考

[https://help.aliyun.com/document\_detail/29434.html](https://help.aliyun.com/document_detail/29434.html)

邮件推送 &gt; SDK 参考

[https://help.aliyun.com/document\_detail/29460.html](https://help.aliyun.com/document_detail/29460.html)

手动添加第三方库
--------

[](#手动添加第三方库)

```
// 添加SDK包,将两个包放到自定义目录Services
app/Services/aliyun-php-sdk-core
app/Services/aliyun-php-sdk-dm
// 添加Composer自动加载
"classmap": [
    "database/seeds",
    "database/factories",
    "app/Services/aliyun-php-sdk-core",
    "app/Services/aliyun-php-sdk-dm"
],
// 更新Composer自动加载类
composer dump-autoload
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![liuhuashi](https://avatars.githubusercontent.com/u/40757749?v=4)](https://github.com/liuhuashi "liuhuashi (1 commits)")

### Embed Badge

![Health badge](/badges/rjyxz-aliyun-php-sdk-dm/health.svg)

```
[![Health](https://phpackages.com/badges/rjyxz-aliyun-php-sdk-dm/health.svg)](https://phpackages.com/packages/rjyxz-aliyun-php-sdk-dm)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[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)
