ganjunlin/push_dev_push

This package is abandoned and no longer maintained. No replacement package was suggested.

Third party message push

1.0 2019-10-21 08:24 UTC

This package is not auto-updated.

Last update: 2021-03-23 09:43:40 UTC


README

Introduction

Third party message push

Install

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

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