PHPackages                             icecho/easyexmail - 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. icecho/easyexmail

AbandonedArchivedLibrary

icecho/easyexmail
=================

Tencent ExMail SDK

2.0.0(7y ago)34892MITPHP

Since Mar 14Pushed 6y agoCompare

[ Source](https://github.com/icecho/TencentExMail)[ Packagist](https://packagist.org/packages/icecho/easyexmail)[ RSS](/packages/icecho-easyexmail/feed)WikiDiscussions master Synced 3d ago

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

 easyexmail
============

[](#-easyexmail-)

 Tencent ExMail SDK.

[![StyleCI build status](https://camo.githubusercontent.com/b9f97509818fdfbcfebb438a5f78b0012fee49efecbc09ba4c4ad786489533fd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137313834393837392f736869656c64)](https://camo.githubusercontent.com/b9f97509818fdfbcfebb438a5f78b0012fee49efecbc09ba4c4ad786489533fd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137313834393837392f736869656c64)

官方文档
----

[](#官方文档)

[查看](https://exmail.qq.com/qy_mng_logic/doc#10001)目前SDK只有主动调用，暂无回调模式。

安装
--

[](#安装)

```
$ composer require icecho/easyexmail -vvv
```

使用
--

[](#使用)

```
use Icecho\EasyExMail\EasyExMail;

$config = [
    'corpId' => 'your corp id',
    'corpSecret' => 'your corp secret'
];

$easy = new EasyExMail($config);
```

在Laravel中使用
-----------

[](#在laravel中使用)

进入config/service.php:

```
'EasyExMail' => [
    'id' => env('EX_MAIL_ID'),
    'secret' => env('EX_MAIL_SECRET')
]
```

进入.env：

```
EX_MAIL_ID=xxxxxx
EX_MAIL_SECRET=xxxxxx
```

部门相关
----

[](#部门相关)

```
/**
 * 获取所有部门
 */
$easy->department()->get();

/**
 * 查找部门
 * 参数：
 *  部门名（必填）
 *  是否模糊匹配（可选 0 or 1)
 */
$easy->department()->find('name', 'fuzzy');

/**
 * 删除部门
 * 参数：
 *  部门ID（必填）
 */
$easy->department()->delete('departmentId');

/**
 * 新建部门
 * 参数：
 *  部门名称（必填）
 *  父ID（默认为1）
 *  权重 (默认0)
 */
$easy->department()->build('name', 'parentId', 'order');

/**
 * 更新部门
 * 参数：
 *  部门ID（必填)
 *  部门名称
 *  父ID
 *  权重
 */
$easy->department()->update('departmentId', 'name', 'parentId', 'order');
```

成员相关
----

[](#成员相关)

```
/**
 * 查找部门成员
 * 参数：
 *  部门ID（必填)
 *  简易或是详细数据（默认简易）
 *  是否递归子部门成员（默认1）
 */
$easy->member()->get('departmentId', 'type', 'child');

/**
 * 查找成员
 * 参数：
 *  成员ID（必填)
 */
$easy->member()->find('email');

/**
 * 新建成员
 * 参数：
 *  成员ID（必填)
 *  成员姓名（必填)
 *  成员所属部门（必填)
 *  密码（必填)
 */
$easy->member()->build(array $attribute);

/**
 * 删除成员
 * 参数：
 *  成员ID（必填)
 */
$easy->member()->delete('email');

/**
 * 更新成员
 * 参数：
 *  成员ID（必填)
 */
$easy->member()->update(array $attribute);

/**
 * 批量检查账号可用
 * 参数：
 *  账号（必填)
 */
$easy->member()->check(array $list);
```

邮件群组相关
------

[](#邮件群组相关)

```
/**
 * 创建邮件群组
 * 参数：
 *  账号（必填)
 *  名称（必填）
 *  类型（必填）
 */
$easy->group()->build(array $attribute);

/**
 * 更新邮件群组
 * 参数：
 *  账号（必填)
 */
$easy->group()->update(array $attribute);

/**
 * 删除邮件群组
 * 参数：
 *  账号（必填)
 */
$easy->group()->delete(string $groupId);

/**
 * 查看邮件群组
 * 参数：
 *  账号（必填)
 */
$easy->group()->find(string $groupId);
```

功能设置相关
------

[](#功能设置相关)

```
/**
 * 查看设置
 * 参数：
 *  账号（必填)
 *  类型（必填）
 */
$easy->setting()->get(string $userId, array $type);

/**
 * 更新设置
 * 参数：
 *  账号（必填)
 *  设置（必填）
 */
$easy->setting()->update(string $userId, array $option);
```

系统日志相关
------

[](#系统日志相关)

```
/**
 * 查看概况
 * 参数：
 *  域名（必填)
 *  起点日期（必填）
 *  终点日期（必填）
 */
$easy->record()->overview(string $domain, string $start, string $end);

/**
 * 查询邮件
 * 参数：
 *  类型（必填)
 *  起点日期（必填）
 *  终点日期（必填）
 */
$easy->record()->email(array $attribute);

/**
 * 查询登录日志
 * 参数：
 *  用户ID（必填)
 *  起点日期（必填）
 *  终点日期（必填）
 */
$easy->record()->login(array $attribute);

/**
 * 查询批量任务
 * 参数：
 *  起点日期（必填）
 *  终点日期（必填）
 */
$easy->record()->mission(array $attribute);

/**
 * 查询操作日志
 * 参数：
 *  起点日期（必填）
 *  终点日期（必填）
 *  类型（必填）
 */
$easy->record()->operate(array $attribute);
```

其他功能
----

[](#其他功能)

```
/**
 * 查询未读邮件数
 * 参数：
 *  起点日期（必填）
 *  终点日期（必填）
 *  用户ID（必填）
 */
$easy->aider()->unreadEmail(string $userId, string $start, string $end);

/**
 * 单点登录
 * 参数：
 *  用户ID（必填）
 */
$easy->aider()->login(string $userId);
```

License
-------

[](#license)

MIT

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

2581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3332afa86b15ec534f00191519599bdc973683cfe64995976e7dc99afd706923?d=identicon)[ranpro](/maintainers/ranpro)

---

Top Contributors

[![ramzeng](https://avatars.githubusercontent.com/u/38133602?v=4)](https://github.com/ramzeng "ramzeng (31 commits)")

### Embed Badge

![Health badge](/badges/icecho-easyexmail/health.svg)

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

###  Alternatives

[aschmelyun/cleaver

A blazing-fast static site generator using Laravel's Blade templating engine

2961.0k](/packages/aschmelyun-cleaver)

PHPackages © 2026

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