PHPackages                             hao/message - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. hao/message

ActiveLibrary[Queues &amp; Workers](/categories/queues)

hao/message
===========

push message

1.1(4y ago)037MITPHPPHP &gt;=7.0

Since Oct 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/JZhao1020/message)[ Packagist](https://packagist.org/packages/hao/message)[ Docs](https://github.com/JZhao1020/message)[ RSS](/packages/hao-message/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

message
=======

[](#message)

消息推送

开源地址
----

[](#开源地址)

\##1.安装

```
composer require hao/message

```

\##2.实例化

```
$message = new \message\Message();

```

\##2.1 验证码发送

```
$message->gateway('email','cn')->sendCode('18816784184@163.com');

```

\##2.2 内容推送

```
$message->gateway('email','cn')->sendText('18816784184@163.com', 'invest_success', ['product_name' => '定期产品']);

```

\##3.可用类型

```
---------------------------
类型      -- 验证码  -- 内容
---------------------------
短信      -- 是     -- 否
---------------------------
邮件      -- 是     -- 是
---------------------------
极光      -- 否     -- 是
---------------------------

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

1741d ago

Major Versions

0.1.3 → 1.0.02020-10-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22906648?v=4)[hao](/maintainers/JZhao1020)[@JZhao1020](https://github.com/JZhao1020)

---

Top Contributors

[![JZhao1020](https://avatars.githubusercontent.com/u/22906648?v=4)](https://github.com/JZhao1020 "JZhao1020 (10 commits)")

---

Tags

message

### Embed Badge

![Health badge](/badges/hao-message/health.svg)

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

###  Alternatives

[php-amqplib/php-amqplib

Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.

4.6k125.3M879](/packages/php-amqplib-php-amqplib)[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.3k20.1M65](/packages/php-amqplib-rabbitmq-bundle)[bunny/bunny

Performant pure-PHP AMQP (RabbitMQ) non-blocking ReactPHP library

7426.5M37](/packages/bunny-bunny)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)[simple-bus/message-bus

Generic classes and interfaces for messages and message buses

3455.7M30](/packages/simple-bus-message-bus)[sabas/edifact

Tools in PHP for UN/EDIFACT

2881.6M7](/packages/sabas-edifact)

PHPackages © 2026

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