PHPackages                             superkingm/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. superkingm/mail

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

superkingm/mail
===============

mail list

1.2.1(5y ago)22341MITPHPPHP &gt;=5.3.0

Since Nov 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/superkingM/mail)[ Packagist](https://packagist.org/packages/superkingm/mail)[ RSS](/packages/superkingm-mail/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

mail
====

[](#mail)

一个用于读取邮箱邮件的拓展包

required
========

[](#required)

- imap拓展

Useage
======

[](#useage)

> composer require superkingm/mail

configuration
=============

[](#configuration)

- pop3配置支持网易邮箱

```
        $username = 'xxxx@163.com';
        $password = 'xxxxx';//邮箱登录密码
        $email_address = 'xxxx@163.com';
        $mail_server = 'pop.163.com';
        $server_type = 'pop3';
        $port = 995;
        $ssl = true;

```

- imap配置方式

```
        $username = 'xxxx@qq.com';
         $password = 'dsaffsdfsdfsdfd';//授权码
         $email_address = 'xxxx@qq.com';
         $mail_server = 'imap.qq.com';
         $server_type = 'imap';
         $port = 143;
         $ssl = false;

```

detail
======

[](#detail)

```
        //pop3或imap配置信息

        $mail = new MailBox($username, $password, $email_address, $mail_server, $server_type, $port, $ssl);
        $mail->connect();
        $mail->getMailTotal();//获取邮件总数,mid 从1到总数
        $head = $mail->getImapHeader($mid);//获取原始的邮件头部信息
        $mail->getHeaders($mid);//获取头部信息例如 发件人，主题，收件人等
        $mail->getBody($mid);//获取邮件内容
        $mail->markMailRead($mid);//将邮件标记为已读
        $mail->markMailUnRead($mid);//将邮件标记为未读
        $mail->isUnread($head);//判断邮件是否被读取
        $mail->deleteMail($mid);//删除邮件
        $mail->getDate($mid);//获取邮件时间

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

4

Last Release

2004d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05c1b97e93437f5f687f430ddb5d5491002dcd7b7331e1e08bebf5516ece9996?d=identicon)[superkingM](/maintainers/superkingM)

---

Top Contributors

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

---

Tags

mailphp

### Embed Badge

![Health badge](/badges/superkingm-mail/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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