PHPackages                             freyo/xinge - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. freyo/xinge

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

freyo/xinge
===========

This package makes it easy to send notifications via Tencent Xinge with Laravel

2.0.2(8y ago)5450MITPHPPHP &gt;=5.6.4

Since Jul 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/freyo/xinge)[ Packagist](https://packagist.org/packages/freyo/xinge)[ RSS](/packages/freyo-xinge/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Tencent Xinge PHP SDK for Laravel
=================================

[](#tencent-xinge-php-sdk-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d6412fbddb49ab2b0b308e7078d342082291455d83c7c621e635b9f3a710bd20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667265796f2f78696e67652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/freyo/xinge)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/f5dea91d620afb7ecb81fbe598ff9c3e80544ecc5ee170a3db0ebe10a11e1c2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667265796f2f78696e67652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/freyo/xinge)

[![](https://camo.githubusercontent.com/323ec477a18a81a6f0cdf6b0145290908fa3ef3f839da284d2a113225a7da02e/68747470733a2f2f6d632e71636c6f7564696d672e636f6d2f7374617469632f696d672f33633466303238353132333163363233386364373638313535356163653534372f5847507573682e737667)](https://camo.githubusercontent.com/323ec477a18a81a6f0cdf6b0145290908fa3ef3f839da284d2a113225a7da02e/68747470733a2f2f6d632e71636c6f7564696d672e636f6d2f7374617469632f696d672f33633466303238353132333163363233386364373638313535356163653534372f5847507573682e737667)

腾讯移动推送（XinGe Push，即 XGPush）

This package makes it easy to send notifications using Tencent Xinge with Laravel.

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

[](#installation)

You can install this package via composer:

```
composer require freyo/xinge
```

Next add the service provider and facade to your `config/app.php`:

```
...
'providers' => [
    ...
    Freyo\Xinge\ServiceProvider::class,
],
'aliases' => [
    ...
    'Xinge' => Freyo\Xinge\Facade::class,
],
...
```

**Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.**

### Setting up the Xinge service

[](#setting-up-the-xinge-service)

You will need to [create](http://xg.qq.com/) a Xinge app in order to use this channel. Within in this app you will find the `access id and access secret`. Place them inside your `.env` file. In order to load them, add this to your `config/services.php` file:

```
...
'xinge' => [
    'android' => [
        'access_id'    => env('XINGE_ANDROID_ACCESS_ID'),
        'secret_key'   => env('XINGE_ANDROID_ACCESS_KEY')
    ],
    'ios' => [
        'access_id'    => env('XINGE_IOS_ACCESS_ID'),
        'secret_key'   => env('XINGE_IOS_ACCESS_KEY')
    ],
]
...
```

This will load the Xinge app data from the `.env` file. Make sure to use the same keys you have used there like `XINGE_IOS_ACCESS_ID`.

Usage
-----

[](#usage)

#### Notification

[](#notification)

Follow [Laravel's documentation](https://laravel.com/docs/notifications) to add the channel to your Notification class.

Example: [AndroidPushSingleAccount](https://github.com/freyo/xinge/blob/master/src/Notifications/AndroidPushSingleAccount.php), [iOSPushSingleAccount](https://github.com/freyo/xinge/blob/master/src/Notifications/iOSPushSingleAccount.php).

#### Facade

[](#facade)

```
Xinge::android()->PushSingleDevice($deviceToken, $message);
Xinge::android()->PushSingleAccount($deviceType, $account, $message);
Xinge::android()->PushAllDevices($deviceType, $message);
Xinge::android()->PushTags($deviceType, $tagList, $tagsOp, $message);
Xinge::android()->PushAccountList($deviceType, $accountList, $message);

Xinge::ios()->PushSingleDevice($deviceToken, $message, $environment = 0);
Xinge::ios()->PushSingleAccount($deviceType, $account, $message, $environment = 0);
Xinge::ios()->PushAllDevices($deviceType, $message, $environment = 0);
Xinge::ios()->PushTags($deviceType, $tagList, $tagsOp, $message, $environment = 0);
Xinge::ios()->PushAccountList($deviceType, $accountList, $message, $environment = 0);
```

[FULL API DOCUMENT](http://docs.developer.qq.com/xg/server_api/rest.html)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~56 days

Recently: every ~42 days

Total

6

Last Release

2934d ago

Major Versions

0.1.0 → 1.0.02017-11-14

1.0.1 → 2.0.02017-12-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13034231?v=4)[freyo](/maintainers/freyo)[@freyo](https://github.com/freyo)

---

Top Contributors

[![freyo](https://avatars.githubusercontent.com/u/13034231?v=4)](https://github.com/freyo "freyo (26 commits)")

---

Tags

laraveltencent-xingexgpushxinge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/freyo-xinge/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)

PHPackages © 2026

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