PHPackages                             wanecho/getui - 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. wanecho/getui

ActiveLibrary

wanecho/getui
=============

UniAPP个推SDK

1.0.0(4y ago)08MITPHP

Since May 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wanecho/getui)[ Packagist](https://packagist.org/packages/wanecho/getui)[ Docs](https://github.com/itxiao6/getui)[ RSS](/packages/wanecho-getui/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

### 个推SDK

[](#个推sdk)

##### 配置

[](#配置)

```
$config = (new \Getui\Config())->
    setAppId('llUBYSt12xg2mPbnOh6')->
    setAppKey('wP31m7pz12DVFmkHq9F6')->
    setMasterSecret('qMyiA12qJ912auukl4Hf8');
```

##### 缓存

[](#缓存)

```
$cache = new Doctrine\Common\Cache\RedisCache();
$redis = new \Redis();
$redis->connect('172.26.224.178',6379,5);
$cache->setRedis($redis);
```

##### Authorization

[](#authorization)

```
$authorization = (new \Getui\Authorization($config))->withCacheDriver($cache);
```

##### 绑定别名

[](#绑定别名)

```
(new \Getui\User())->withConfig($config)->withAuth($authorization)->aliasBind([
    [
        'cid'=>'ad9555f3c980cb0fe20de584ab9f0e3a',
        'alias'=>'15093570968'
    ]
]);
```

##### 通过ClientId 获取别名

[](#通过clientid-获取别名)

```
$alias = (new \Getui\User())->
withConfig($config)->
withAuth($authorization)->
getAliasByClientId('ad9555f3c980cb0fe20de584ab9f0e3a');
var_dump($alias);
```

##### 指定Client Id 推送

[](#指定client-id-推送)

```
(new \Getui\Push())->withConfig($config)->withAuth($authorization)->toSingleCid([
    'ad9555f3c980cb0fe20de584ab9f0e3a'
],(new \Getui\Message\NotificationMessage())->
setTitle('测1试32')->
setBody('订单已2经支3付1成功')->
setClickType('payload')->
setPayload([
    'jump_type'=>99,
    'jump_value'=>111
]));
```

##### 指定 别名 推送

[](#指定-别名-推送)

```
(new \Getui\Push())->withConfig($config)->withAuth($authorization)->toSingleAlias([
    '15093570968'
],(new \Getui\Message\NotificationMessage())->
setTitle('测试12')->
setBody('订单s已2经支3付1成功')->
setClickType('payload')->
setPayload([
    'jump_type'=>91,
    'jump_value'=>111
]));
```

##### 推送全部用户

[](#推送全部用户)

```
(new \Getui\Push())->withConfig($config)->withAuth($authorization)->toAll((new \Getui\Message\NotificationMessage())->
setTitle('测试2订单')->
setBody('全局2推送')->
setClickType('payload')->
setPayload([
    'jump_type'=>2,
    'jump_value'=>"id=1"
]));
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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

Unknown

Total

1

Last Release

1815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67e8daaa0541c6fcfcd5d124ed8c6938925fe7ebf081739ad4390ce58c061a3f?d=identicon)[wanecho](/maintainers/wanecho)

---

Top Contributors

[![wanecho](https://avatars.githubusercontent.com/u/31085318?v=4)](https://github.com/wanecho "wanecho (2 commits)")

---

Tags

phpGeTuiUniapppushapi

### Embed Badge

![Health badge](/badges/wanecho-getui/health.svg)

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

###  Alternatives

[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)

PHPackages © 2026

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