2017 © Pedro Peláez
 

library mpns

Client for Microsoft Push Notification Service (MPNS)

image

alxmsl/mpns

Client for Microsoft Push Notification Service (MPNS)

  • Sunday, August 3, 2014
  • by alxmsl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

MPNSClient

Client for Microsoft Push Notification Service (MPNS) on PHP, (*1)

Toast notification example

use alxmsl\MPNS\Client;
use alxmsl\MPNS\Message\ToastMessage;

$Message = new ToastMessage();
$Message->setTitle('text1')
    ->setContent('text2')
    ->setParam('aaa')
    ->setSound('sound')
    ->setIsSilent(true);

$channelUrl = 'http://sn1.notify.live.net/throttledthirdparty/01.00/ASDWEWRWEDFDFDfdfdfdfFE3feeD444343';
$Client = new Client();
$Client->send($channelUrl, $Message);

Tile notification example

use alxmsl\MPNS\Client;
use alxmsl\MPNS\Message\TileMessage;

$Message = new TileMessage();
//@todo: here you can initialize tile fileds use TileMessage setters

$channelUrl = 'http://sn1.notify.live.net/throttledthirdparty/01.00/ASDWEWRWEDFDFDfdfdfdfFE3feeD444343';
$Client = new Client();
$Client->send($channelUrl, $Message);

Raw tile notification example

use alxmsl\MPNS\Client;
use alxmsl\MPNS\Message\RawTileMessage;

$Message = new RawTileMessage();
// Here is raw fields initialization
$Message->aaa = 'bbb';

$channelUrl = 'http://sn1.notify.live.net/throttledthirdparty/01.00/ASDWEWRWEDFDFDfdfdfdfFE3feeD444343';
$Client = new Client();
$Client->send($channelUrl, $Message);

The Versions

03/08 2014

dev-master

9999999-dev

Client for Microsoft Push Notification Service (MPNS)

  Sources   Download

WTFPL

The Requires

 

by Avatar alxmsl

microsoft notification push mpns

03/08 2014

v1.0.0

1.0.0.0

Client for Microsoft Push Notification Service (MPNS)

  Sources   Download

WTFPL

The Requires

 

by Avatar alxmsl

microsoft notification push mpns