cutcop / jgtuisong
Third party message push
dev-master
2020-07-01 08:32 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2024-09-29 05:48:51 UTC
README
Introduction
Third party message push
Install
$ composer require cutcop/jgtuisong
Demo
<?php require __DIR__ . '/vendor/autoload.php'; $appKey = 'your-app-key'; $masterSecret = 'your-master-secret'; $alert = 'Hi JPush!'; $extras = [ 'type' => 1, 'url' => '' ]; $platform = ['android', 'ios']; $audience = [ 'alias' => ['13888888888'] ]; $push = new Cutcop\Jgtuisong\JPush($appKey, $masterSecret); $push->push($alert, $extras, $platform, $audience);