PHPackages                             newiep/wanglipush - 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. newiep/wanglipush

ActiveLibrary

newiep/wanglipush
=================

网利宝消息推送SDK

2.0.1(9y ago)143MITPHP

Since Apr 21Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

wanglipush
==========

[](#wanglipush)

推送服务多渠道、易拓展SDK (For `laravel/lumen`)

### 当前支持渠道

[](#当前支持渠道)

- 企信通(短信默认渠道)
- 云信
- 极光推送

install
-------

[](#install)

```
composer require "newiep/wanglipush"

```

config
------

[](#config)

配置目录`config/`下增加配置文件`gateways.php`,结构如下:

```
return [

    /**
     * 针对短信有多个渠道接口，默认企信通
     */
    'sms_channel' => env('CHANNEL_TYPE', 'qxt'),

    'stores' => [
        /**
         * 企信通接口账号配置
         */
        'qxt' => [
            'key' => env('QXT_KEY', 'default key for qixintong'),
            'secret' => env('QXT_SECRET', 'default secret for qixintong'),
        ],

        /**
         * 云信接口账号配置
         */
        'yes' => [
            'key' => env('YES_KEY', 'default key for yunxin'),
            'secret' => env('YES_SECRET', 'default secret for yunxin'),
            'channel' => env('YES_CHANNEL', '276'),
        ],

        /**
         * 极光推送接口账号配置
         */
        'jpush' => [
            'key' => env('JPUSH_KEY', 'default key for jpush'),
            'secret' => env('JPUSH_SECRRT', 'default secret for jpush'),
        ],
    ],

];

```

Usage Example
-------------

[](#usage-example)

```
//收件人列表，英文逗号分隔（发送短信）
$receiver = array(
	//短信接收人格式（'phone' => 'number list'）
	'phone' => ['18801301379, 18801301379', '....'],

	//极光接收人格式（'alias' => 'number list'）
	'alias' => ['693023', '1115256, '....'],

);

//内容
$content = '测试内容';

//发送短信（默认使用企信通）
$handle = new \WangliPush\PushFacade('sms', $receiver, $content);

//发送极光推送
$handle = new \WangliPush\PushFacade('jpush', $receiver, $content);

$result = $handle->send(); // success or fail

```

### 使用其他渠道发送短信

[](#使用其他渠道发送短信)

```
//使用云信
app('config')["gateways.sms_channel"] = 'yes';

$handle = new \WangliPush\PushFacade('sms', $receiver, $content);

$handle->send();

```

其他可用接口
------

[](#其他可用接口)

是否收件人全部发送完成

```
$handle->isSendOver();

```

获取当前批次收件人

```
$handle->getBatchReceivers();

```

获取发送的消息内容

```
$handle->getMessage();

```

获取接口响应结果

```
$handle->getResultNo();

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~13 days

Total

4

Last Release

3628d ago

Major Versions

1.0.1 → 2.02016-05-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/c06cfd975cf578fa342ef70473b262f2828a01dbf886bae2f68a0e2990a82b01?d=identicon)[newiep](/maintainers/newiep)

---

Top Contributors

[![troubleman](https://avatars.githubusercontent.com/u/10357067?v=4)](https://github.com/troubleman "troubleman (4 commits)")[![newiep](https://avatars.githubusercontent.com/u/19281176?v=4)](https://github.com/newiep "newiep (1 commits)")

### Embed Badge

![Health badge](/badges/newiep-wanglipush/health.svg)

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

PHPackages © 2026

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