PHPackages                             shenstef/shaozeming-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. [HTTP &amp; Networking](/categories/http)
4. /
5. shenstef/shaozeming-getui

ActiveLibrary[HTTP &amp; Networking](/categories/http)

shenstef/shaozeming-getui
=========================

一个适用于laravel和lumen框架的个推push推送服务包

v1.2.6(5y ago)145MITPHPPHP &gt;=7.2.5

Since Jun 13Pushed 5y agoCompare

[ Source](https://github.com/shenstef/laravel-getui)[ Packagist](https://packagist.org/packages/shenstef/shaozeming-getui)[ RSS](/packages/shenstef-shaozeming-getui/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (10)Used By (0)

Laravel Or Lumen GeTui
======================

[](#laravel-or-lumen-getui)

基于 [个推官方SDK](http://docs.getui.com/getui/server/php/start/) for Laravel.

---

[![](https://camo.githubusercontent.com/65453064fc0b6a2fd773d63135c1ee6bfa1e344ad5b50b8f75934bccc314b28b/68747470733a2f2f7472617669732d63692e6f72672f5368616f5a654d696e672f6c61726176656c2d67657475692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ShaoZeMing/laravel-getui)[![](https://camo.githubusercontent.com/2bce598fe33ce11372f5f86d3659e41e255c9d11de72ce593f08c9acd1b38c2d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f5368616f5a654d696e672f6c61726176656c2d67657475692e737667)](https://packagist.org/packages/shaozeming/laravel-getui)[![](https://camo.githubusercontent.com/4f8c958937d43cde999d9bddcfe3b220272e64c1fda3242b69242c63ffe3c89c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5368616f5a654d696e672f6c61726176656c2d67657475692e737667)](https://packagist.org/packages/stichoza/shaozeming/laravel-getui)

安装
--

[](#安装)

```
$ composer require shenstef/shaozeming-getui -v
```

### Laravel

[](#laravel)

```
// config/app.php

    'providers' => [
        //...
        ShaoZeMing\GeTui\GeTuiServiceProvider::class,    //This is default in laravel 5.5
    ],
```

And publish the config file:

```
$ php artisan vendor:publish --provider=ShaoZeMing\\GeTui\\GeTuiServiceProvider
```

if you want to use facade mode, you can register a facade name what you want to use, for example `GeTui`:

```
// config/app.php

    'aliases' => [
        'GeTui' => ShaoZeMing\GeTui\Facade\GeTui::class,   //This is default in laravel 5.5
    ],
```

### lumen

[](#lumen)

- 在 bootstrap/app.php 中 82 行左右：

```
$app->register(ShaoZeMing\GeTui\GeTuiServiceProvider::class);

```

将 `vendor/ShaoZeMing/laravel-getui/src/config/getui.php` 拷贝到项目根目录`/config`目录下，并将文件名改成`getui.php`。

### configuration

[](#configuration)

```
// config/getui.php
   // APP_EVN     你的项目当前环境 测试、生产
    'app_env' => env('APP_ENV') == 'production' ? 'production' : 'development',

    // The default default_client name which configured in `development` or `production` section
    //默认推送的客户端
    'default_client' => 'client_1',

    'development' => [
        'client_1' => [
            'gt_appid' => 'WAqyXNcLpS8OLg4jBywS48',
            'gt_appkey' => 'FkxUuibQsT75FX5Tt5jteA',
            'gt_appsecret' => 'jWtd0iUzdmAvVPhKorrtW1',
            'gt_mastersecret' => '4uCfJsfME99oaF5sT1ZjO',
            'gt_domainurl' => 'http://sdk.open.api.igexin.com/apiex.htm',
        ],
        'client_2' => [
            'gt_appid' => 'SeldZ6X0Iq8hpj5rGvqAk8',
            'gt_appkey' => '93MPU2THwl9okpeNf4lNI4',
            'gt_appsecret' => 'kzZuSXVMm29M7owpvId979',
            'gt_mastersecret' => '0QCmCdVZSi8lcyMFXLB4e',
            'gt_domainurl' => 'http://sdk.open.api.igexin.com/apiex.htm',
        ],

        // other client_3   ......
    ],
    'production' => [
        'client_1' => [
            'gt_appid' => '6V95sH0t3W6Du1MTiU3679',
            'gt_appkey' => 'n6q8NSAshP77ImKxdhuHV6',
            'gt_appsecret' => '01hGwR1Jdl6vuwBcnvfyD3',
            'gt_mastersecret' => 'daw4hbkFj4Ah3kBlPFfIh2',
            'gt_domainurl' => 'http://sdk.open.api.igexin.com/apiex.htm',
        ],
        'client_2' => [
            'gt_appid' => 'iB7DfaXV6bAf8zlJ0L59A8',
            'gt_appkey' => 'DKKp54s2knA2MaeGBXuF01',
            'gt_appsecret' => 'exTKWC0M1K6O2Bgig5RiC8',
            'gt_mastersecret' => '0cojzBC7yB86mhOiOVHBuA',
            'gt_domainurl' => 'http://sdk.open.api.igexin.com/apiex.htm',
        ],

        // other client_3   ......

    ],

```

Usage
-----

[](#usage)

Gateway instance:

```
use GeTui;
//针对单个或者多个用户推送
GeTui::push($deviceId, $data,true) //Using default default_client   推送给默认的客户端
GeTui::toClient('CLIENT NAME')->push($deviceId, $data)  // CLIENT NAME is key name of `development` or `production`  configuration.  //自定义发送的客户端

// 针对整个app所有人推送
GeTui::pushToApp($data,true) ////Using default default_client
GeTui::toClient('CLIENT NAME')->pushToApp($data)  // GATEWAY NAME is key name of `development` or `production`  configuration.
```

Example:

```
    $deviceId = 'a1f3e7c11ca97924be6f291f2c09714b';
   // 多个push对象device_id 用数组传入
//   $deviceId = [
//            'a1f3e7c11ca97924be6f291f2c09714b',
//            'ea34a4715b08b1b8d77aabf36c977cba',
//           ];

   $data = [
                'url' => 'http://test.4d4k.com/push',
                'type' => '点击查看\(^o^)/~',
                'title' => '23232323fdf',
                'content' => '今天天气真好',
                'id' => '3a92y3GR1neZ',
                'merchant_name' => '泽明科技',
                'big_cat' => '电视机',
                'full_address' => '北京市海淀区五道口清华大学',
            ];

$res = \GeTui::push($deviceId, $data,true); //Using default default_client

print_r($res);
```

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~113 days

Recently: every ~106 days

Total

9

Last Release

1978d ago

PHP version history (2 changes)v1.2.3PHP &gt;=7.1.3

v1.2.4PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/55d594eca4ae0ee3a32201716c48bccf5b54d4c17510ab0c3eaa760f4ab35127?d=identicon)[shenstef](/maintainers/shenstef)

---

Top Contributors

[![ShaoZeMing](https://avatars.githubusercontent.com/u/19376576?v=4)](https://github.com/ShaoZeMing "ShaoZeMing (42 commits)")[![shenstef](https://avatars.githubusercontent.com/u/5144202?v=4)](https://github.com/shenstef "shenstef (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[xendit/xendit-php

Xendit PHP SDK

189730.6k6](/packages/xendit-xendit-php)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k5](/packages/api-platform-laravel)[lesstif/jira-cloud-restapi

JIRA Cloud REST API

481.0M3](/packages/lesstif-jira-cloud-restapi)

PHPackages © 2026

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