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

ActiveLibrary

urchin/laravel-getui
====================

00PHP

Since Apr 13Pushed 1mo agoCompare

[ Source](https://github.com/urchinstarz/LaravelGetui)[ Packagist](https://packagist.org/packages/urchin/laravel-getui)[ RSS](/packages/urchin-laravel-getui/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

GETUI SDK for Laravel
=====================

[](#getui-sdk-for-laravel)

Description
-----------

[](#description)

- 官网
- 基于官方SDK 修改。官方SDK 没有对 php7 以上的维护，应该是放弃了。为了在 laravel v11+ 上使用特别修改
- 需要权限和 vip 相关项目没有进行深入处理，基本用不到 ，实在有需要用到的 在 跟我 issue 吧

Installation
------------

[](#installation)

```
composer require urchin/laravel-getui
```

config
------

[](#config)

- .ENV

```
## GT
GETUI_APP_ID='YOUR GETUI_APP_ID'
GETUI_APP_SECRET='YOUR GETUI_APP_ID'
GETUI_APP_KEY='YOUR GETUI_APP_KEY'
GETUI_MASTER_SECRET='YOUR GETUI_MASTER_SECRET'

## 缓存key
GETUI_CACHE_AUTH_KEY='YOUR GETUI_CACHE_AUTH_KEY'

```

```
php artisan vendor:publish --tag=laravel-getui
```

### Usage

[](#usage)

1. description

- 不需要深度定制的，直接 使用 Service/GTPushService 即可
- 需要深度配置的，自己参考 Service/GTPushService 重写 `getPushRequest()` 等方法 即可。

2. use demo

```
use Urchin\LaravelGetui\Service\GTPushService;
...

$cid = $req->input('cid');
$title = $req->input('title');
$body = $req->input('body');
$badge = $req->input('badge');
$link = $req->input('link');

$getui = new GTPushService;
$res = $getui->pushToSingleByCid($cid, $title, $body, $badge,$link);
return $res;

```

3. 重写demo

```
class GTPushService extends GTInitClass
{
    public function pushToSingleByCid($cid, $title, $body, $badge = 0,$link=''){
        ...
    }

    public function getPushRequest($title, $body,$setAutoBadge = 0,$link = '') {

    }
}

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance59

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/44cf821b8cfae81c500711459fd53430f4f91b74e19bb975aebee1c2aaba1611?d=identicon)[urchinstarz](/maintainers/urchinstarz)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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