PHPackages                             xjdata/aliyun-open-api-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. [API Development](/categories/api)
4. /
5. xjdata/aliyun-open-api-dm

ActiveLibrary[API Development](/categories/api)

xjdata/aliyun-open-api-dm
=========================

The Directmail SDK for Aliyun OpenAPI

1.0.0(10y ago)152MITPHPPHP &gt;=5.3.0

Since Apr 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/xjdata/php-aliyun-open-api-dm)[ Packagist](https://packagist.org/packages/xjdata/aliyun-open-api-dm)[ Docs](https://github.com/xjdata/php-aliyun-open-api-dm.git)[ RSS](/packages/xjdata-aliyun-open-api-dm/feed)WikiDiscussions master Synced today

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

The DM SDK for Aliyun OpenAPI
=============================

[](#the-dm-sdk-for-aliyun-openapi)

The DM SDK for Aliyun OpenAPI

基于Lokielse\[\]

Install
-------

[](#install)

Via Composer

```
$ composer require xjdata/aliyun-open-api-dm
```

Usage
-----

[](#usage)

```
/**
 * 访问信息
 */
$config = [
	'AccessKeyId'=>'',
	'AccessKeySecret'=>'',
];

/**
 * 配置网关
 */
$endpoint = new Endpoint('cn-hangzhou', EndpointConfig::getRegionIds(), EndpointConfig::getProductDomains());
EndpointProvider::setEndpoints([ $endpoint ]);

/**
 * 授权资料
 */
$profile = DefaultProfile::getProfile('cn-hangzhou', $config['AccessKeyId'], $config['AccessKeySecret']);

/**
 * 请求对象
 */
$request = new \Aliyun\Dm\Request\SingleSendMailRequest();
$request->setAccountName("notice-no-reply@sendmail.aliyun.xxx.com");
$request->setFromAlias("某某");
$request->setAddressType(1);
$request->setTagName("youtagname");
$request->setReplyToAddress("true");
$request->setToAddress("xxx@qq.com");
$request->setSubject("邮件主题");
$request->setHtmlBody("邮件正文");
$response = $client->getAcsResponse($request);
var_dump($response);
```

[官方文档](https://help.aliyun.com/document_detail/directmail/api-reference/overview.html)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3728d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4524983?v=4)[Mx](/maintainers/xjdata)[@xjdata](https://github.com/xjdata)

---

Top Contributors

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

---

Tags

phpsdkaliyundirectmail

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xjdata-aliyun-open-api-dm/health.svg)

```
[![Health](https://phpackages.com/badges/xjdata-aliyun-open-api-dm/health.svg)](https://phpackages.com/packages/xjdata-aliyun-open-api-dm)
```

PHPackages © 2026

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