yuqinglan/jg-push

Third party message push (极光)

Installs: 7

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/yuqinglan/jg-push

v1.1 2019-02-27 03:42 UTC

This package is auto-updated.

Last update: 2025-09-28 00:34:55 UTC


README

Introduction

Third party message push

Install

$ composer require yuqinglan/jg-push

Demo

<?php

require __DIR__ . '/vendor/autoload.php';

$appKey = 'your-app-key';
$masterSecret = 'your-master-secret';

$alert = 'Hi JPush!';
$extras = [
    'type' => 1,
    'url' => 'http://www.mayanlong.com'
];
$platform = ['android', 'ios'];
$audience = [
    'alias' => ['13888888888']
];

$push = new zhangjian\Push\JPush($appKey, $masterSecret);
$push->push($alert, $extras, $platform, $audience);