PHPackages                             itxiao6/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. itxiao6/getui

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

itxiao6/getui
=============

UniAPP个推SDK

1.0.1(5y ago)12.6k2MITPHP

Since Jan 19Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (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

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

1982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4aa333e293f1a1ac60afd39e0c6f3463404df4d6e2ff11bff698c868826aab18?d=identicon)[itxiao6](/maintainers/itxiao6)

---

Top Contributors

[![itxiao6](https://avatars.githubusercontent.com/u/20547806?v=4)](https://github.com/itxiao6 "itxiao6 (7 commits)")

---

Tags

phpGeTuiUniapppushapi

### Embed Badge

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

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

###  Alternatives

[amranidev/laracombee

Recommendation system for laravel

11537.9k1](/packages/amranidev-laracombee)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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