Skip to content

junlin123/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

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

About

测试github是否正常

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages