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

ActiveLibrary

wtf10029/getui
==============

个推v2SDK

1.0.9(4y ago)1155MITPHP

Since Dec 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wtf10029/getui)[ Packagist](https://packagist.org/packages/wtf10029/getui)[ RSS](/packages/wtf10029-getui/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

### 个推SDK

[](#个推sdk)

##### 配置

[](#配置)

```
$config = (new \Getui\Config())->
    setAppId('appid')->
    setAppKey('appkey')->
    setMasterSecret('secret');
```

##### 缓存

[](#缓存)

```
$redis = new \Redis();
$redis->connect('127.0.0.1',6379,0);
```

##### Authorization

[](#authorization)

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

##### 绑定别名

[](#绑定别名)

```
(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('标题')->
setBody('内容')->
setClickType('payload')->
setPayload([
    'jump_type'=>1,
    'jump_value'=>2
]));
```

##### 指定 别名 推送

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

```
(new \Getui\Push())->withConfig($config)->withAuth($authorization)->toSingleAlias([
    '15093570968'
],(new \Getui\Message\NotificationMessage())->
setTitle('标题')->
setBody('内容')->
setClickType('payload')->
setPayload([
    'jump_type'=>1,
    'jump_value'=>2
]));
```

##### 推送全部用户

[](#推送全部用户)

```
(new \Getui\Push())->withConfig($config)->withAuth($authorization)->toAll((new \Getui\Message\NotificationMessage())->
setTitle('标题')->
setBody('内容')->
setClickType('payload')->
setPayload([
    'jump_type'=>2,
    'jump_value'=>"id=1"
]));
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~8 days

Recently: every ~17 days

Total

10

Last Release

1553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/961ed7035e1a40be23863eb35f67c71a520c2015a479b355036fff9a2f029feb?d=identicon)[wtf10029](/maintainers/wtf10029)

---

Top Contributors

[![wtf10029](https://avatars.githubusercontent.com/u/31917161?v=4)](https://github.com/wtf10029 "wtf10029 (1 commits)")

---

Tags

phpGeTuipushapi

### Embed Badge

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

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

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