PHPackages                             huangyongda/huaweipush - 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. huangyongda/huaweipush

ActiveLibrary

huangyongda/huaweipush
======================

huawei Push 华为推送

v1.2.6(7y ago)413.1k—0%8[2 PRs](https://github.com/huangyongda/huaweipush/pulls)PHPPHP &gt;=5.6.0

Since Jul 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/huangyongda/huaweipush)[ Packagist](https://packagist.org/packages/huangyongda/huaweipush)[ RSS](/packages/huangyongda-huaweipush/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

huaweipush
==========

[](#huaweipush)

php服务端 华为推送 huawei push

```
$push=new  huaweiPush("100xxxx53","9c6484exxxxx05eb0a91c49b1bfc2a2d");

// 然后可以这样使用。

$title = '推送的消息标题';

$message = '需要推送的消息内容';

$AccessToken=$push->getAccessToken();//获取AccessToken 可以保存起来
$push->setTitle($title)
    ->setMessage($message)
    ->setAccessToken($AccessToken)
    ->setAppPkgName("com.cug.maintenance") //设置包名称
    ->setCustomize(["你好"]) //设置自定义参数 （点击app后可以应用可获取的参数）
//    ->addDeviceToken('0865831037206556300001986600CN01')
    ->addDeviceToken('0865831037206556300001986600CN01');
$push->sendMessage(); // 执行推送消息。

$push->sendMessage(); // 执行推送消息。
var_dump($push->isSendSuccess()); //是否推送成功
var_dump($push->isSendFail()); //是否推送失败
var_dump($push->getAccessTokenExpiresTime()); //获取AccessToken 过期时间
var_dump($push->getSendSuccessRequestId()); //获取推送成功后接口返回的请求id
//$push->test();

```

[![image](https://github.com/huangyongda/huaweipush/raw/master/IMG_3057.JPG)](https://github.com/huangyongda/huaweipush/blob/master/IMG_3057.JPG)点击后打开 [![image](https://github.com/huangyongda/huaweipush/raw/master/IMG_3058.JPG)](https://github.com/huangyongda/huaweipush/blob/master/IMG_3058.JPG)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Every ~2 days

Total

5

Last Release

2853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c68754000d2ecc2fa93c1785d02ebe47cf82a4b9ae85cd75330a70f9fef205e?d=identicon)[huangyongda](/maintainers/huangyongda)

---

Top Contributors

[![huangyongda](https://avatars.githubusercontent.com/u/2100606?v=4)](https://github.com/huangyongda "huangyongda (14 commits)")

### Embed Badge

![Health badge](/badges/huangyongda-huaweipush/health.svg)

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

PHPackages © 2026

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