PHPackages                             coomm/jpush - 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. coomm/jpush

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

coomm/jpush
===========

PhalApi 2.x 扩展类库 - 极光推送扩展

01PHP

Since Dec 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/coomm/jpush)[ Packagist](https://packagist.org/packages/coomm/jpush)[ RSS](/packages/coomm-jpush/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

极光推送扩展
======

[](#极光推送扩展)

安装和配置
-----

[](#安装和配置)

修改项目下的composer.json文件，并添加：

```
    "coomm/jpush":"dev-master"

```

然后执行`composer update`。

配置
--

[](#配置)

在vendor/coomm/jpush/src/Lite.php修改短信配置

```
```

注册
--

[](#注册)

在/path/to/phalapi/config/di.php文件中，注册：

```
$di->jpush = function() {
	return new \Coomm\Jpush\Lite();
};
```

使用
--

[](#使用)

```
// 这只是使用样例,不应该直接用于实际生产环境中 !!

$push_payload = \PhalApi\DI()->jpush->client->push()
    ->setPlatform('all')
    ->addAllAudience()
    ->setNotificationAlert('Hi, JPush')
	->validate();
```

```

更多请参考官方文档

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b909d3833baebf80e3a412a45a1a220a6835ac411002c14a9eed3ec45143610a?d=identicon)[alan\_arke](/maintainers/alan_arke)

---

Top Contributors

[![coomm](https://avatars.githubusercontent.com/u/39479410?v=4)](https://github.com/coomm "coomm (3 commits)")

### Embed Badge

![Health badge](/badges/coomm-jpush/health.svg)

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

###  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)
