PHPackages                             vivlong/phalapi-aliyun-push - 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. vivlong/phalapi-aliyun-push

Abandoned → [vivlong/phalapi-xpush](/?search=vivlong%2Fphalapi-xpush)ArchivedLibrary

vivlong/phalapi-aliyun-push
===========================

PhalApi 2.x 扩展类库：基于阿里云移动推送的服务端扩展。

015PHP

Since Dec 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vivlong/phalapi-aliyun-push)[ Packagist](https://packagist.org/packages/vivlong/phalapi-aliyun-push)[ RSS](/packages/vivlong-phalapi-aliyun-push/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PhalApi 2.x 的阿里云移动推送扩展
======================

[](#phalapi-2x-的阿里云移动推送扩展)

PhalApi 2.x 扩展类库：基于阿里云移动推送的服务端扩展。
[![Packagist](https://camo.githubusercontent.com/ae942f3d4ee1da6c0a84e129f4e1431eecfffb7fe586e1940ba1f82d5f6bbee3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669766c6f6e672f7068616c6170692d616c6979756e2d70757368)](https://camo.githubusercontent.com/ae942f3d4ee1da6c0a84e129f4e1431eecfffb7fe586e1940ba1f82d5f6bbee3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7669766c6f6e672f7068616c6170692d616c6979756e2d70757368)

安装和配置
-----

[](#安装和配置)

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

```
    "vivlong/phalapi-aliyun-push":"dev-master"

```

然后执行`composer update`。

安装成功后，添加以下配置到/path/to/phalapi/config/app.php文件：

```
    /**
     * 阿里云推送相关配置
     */
    'AliyunPush' =>  array(
        'accessKeyId'       => '',
        'accessKeySecret'   => '',
        'appKey'            => '',
        'regionId'          => 'cn-hangzhou',
        'androidChannel'    => '',
        'androidPopupActivity' => 'Activity',
    ),
```

并根据自己的情况修改填充。

注册
--

[](#注册)

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

```
$di->aliyunPush = function() {
    return new \PhalApi\AliyunPush\Lite();
};
```

使用
--

[](#使用)

使用方式：

```
  \PhalApi\DI()->aliyunPush->push();
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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/63cebb214330833e8bea309160266105934daf5e70e20db7ae58a6484443f37c?d=identicon)[vivlong](/maintainers/vivlong)

---

Top Contributors

[![vivlong](https://avatars.githubusercontent.com/u/3961154?v=4)](https://github.com/vivlong "vivlong (13 commits)")

### Embed Badge

![Health badge](/badges/vivlong-phalapi-aliyun-push/health.svg)

```
[![Health](https://phpackages.com/badges/vivlong-phalapi-aliyun-push/health.svg)](https://phpackages.com/packages/vivlong-phalapi-aliyun-push)
```

PHPackages © 2026

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