PHPackages                             lokielse/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. lokielse/aliyun-open-api-dm

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

lokielse/aliyun-open-api-dm
===========================

The Direct Mail SDK for Aliyun OpenAPI

v1.0.1(8y ago)1138MITPHPPHP &gt;=5.3.0

Since May 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AliyunOpenAPI/php-aliyun-open-api-dm)[ Packagist](https://packagist.org/packages/lokielse/aliyun-open-api-dm)[ Docs](https://github.com/lokielse/aliyun-open-api-dm)[ RSS](/packages/lokielse-aliyun-open-api-dm/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/b01525ff85f3e194d273f97a4bcad737b4ab993fb4efe333b99a9397af073f4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d646d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lokielse/aliyun-open-api-dm)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4cbacf89d1debdee3eedbb89e6e8601f25e58542f542d982f13307ade3696ee2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d646d2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lokielse/aliyun-open-api-dm)[![Coverage Status](https://camo.githubusercontent.com/98f8ccef95d21f5cbf2a510434718f37c25be2d72fbe5231c8cd79022ff59dfd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d646d2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lokielse/aliyun-open-api-dm/code-structure)[![Quality Score](https://camo.githubusercontent.com/80047e575807ff3b6025b4da6e9b2ddcd9553a75bbe5ef759ed2a0672fd1b713/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d646d2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lokielse/aliyun-open-api-dm)[![Total Downloads](https://camo.githubusercontent.com/a94b27552c96f37a6d46ac8933b1eedbb5c9226afec71f9bdbfde45982641df9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d646d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lokielse/aliyun-open-api-dm)

The DM SDK for Aliyun OpenAPI

Install
-------

[](#install)

Via Composer

```
$ composer require lokielse/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 SingleSendMailRequest();
$request->setAccountName('notice@push.example.com');
$request->setFromAlias('Pusher');
$request->setAddressType(1);
$request->setReplyToAddress('true');
$request->setToAddress('to@example.com');
$request->setSubject('Demo Subject');
$request->setHtmlBody('Hello World!');

$client  = new DefaultAcsClient($profile);
$response = $client->getAcsResponse($request);

var_dump($response);
```

[官方文档](https://help.aliyun.com/document_detail/29444.html)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lokielse](https://github.com/lokielse)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3145d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpsdkmailaliyunDM

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

60879.6k](/packages/railsware-mailtrap-php)[henrique-borba/php-sieve-manager

A modern (started in 2022) PHP library for the ManageSieve protocol (RFC5804) to create/edit Sieve scripts (RFC5228). Used by Cypht Webmail.

28137.9k3](/packages/henrique-borba-php-sieve-manager)[jjonline/aliyun-dysms-php-sdk

Aliyun SMS SDK for PHP

2198.9k](/packages/jjonline-aliyun-dysms-php-sdk)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

15122.2k](/packages/hafael-azure-mailer-driver)[benhall14/php-imap-reader

A PHP class that makes working with IMAP in PHP simple.

3518.7k](/packages/benhall14-php-imap-reader)

PHPackages © 2026

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