Skip to content

yanlongma/push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

push

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);

About

Third party message push

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages