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

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

highc/laravel-getui
===================

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

v1.4.1(5y ago)122MITPHPPHP &gt;=7.1.3

Since Jun 13Pushed 5y agoCompare

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

READMEChangelog (2)Dependencies (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 shaozeming/laravel-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

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~115 days

Recently: every ~110 days

Total

9

Last Release

1963d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28f565ef1f4f27a827149b49bad2bb53834687cd86da72b92904f3993a34be86?d=identicon)[leonthetruth](/maintainers/leonthetruth)

---

Top Contributors

[![ShaoZeMing](https://avatars.githubusercontent.com/u/19376576?v=4)](https://github.com/ShaoZeMing "ShaoZeMing (42 commits)")[![highc](https://avatars.githubusercontent.com/u/6982649?v=4)](https://github.com/highc "highc (3 commits)")[![ZivMadhu](https://avatars.githubusercontent.com/u/31338318?v=4)](https://github.com/ZivMadhu "ZivMadhu (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M177](/packages/illuminate-broadcasting)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)

PHPackages © 2026

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