kacha886/push

Display page loaded time

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/kacha886/push

v1.0 2018-06-09 11:54 UTC

This package is not auto-updated.

Last update: 2025-12-30 23:25:48 UTC


README

Introduction

Third party message push

Install

$ composer require kacha886/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.kacha886.com'
];
$platform = ['android', 'ios'];
$audience = [
    'alias' => ['13888888888']
];

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