Third party message push

0.3.1 2017-12-25 06:01 UTC

This package is not auto-updated.

Last update: 2025-06-22 08:59:51 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.mayanlong.com'
];
$platform = ['android', 'ios'];
$audience = [
    'alias' => ['13888888888']
];

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