2017 © Pedro Peláez
 

library pusher

PHP push notifications to APNS, FCM fork from mxp100/pusher by Yuriy Potemkin

image

navvygator/pusher

PHP push notifications to APNS, FCM fork from mxp100/pusher by Yuriy Potemkin

  • Saturday, November 18, 2017
  • by navvygator
  • Repository
  • 0 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Pusher

Compatable: PHP 7+, (*1)

Installation

Composer

composer require mxp100/pusher, (*2)

APNS certicates generate

Please see Wiki: https://github.com/mxp100/Pusher/wiki/Generating-the-Apple-Push-Notification-SSL-certificate-on-Mac, (*3)

Examples

Example for FCM:, (*4)

$serverKey = '[server key]';
$deviceId = '[device token]';

$devices = new DeviceCollection([new Device($deviceId)]);
$message = new Message('This is a test message');

$adapter = new Fcm($serverKey);

$pusher = new Pusher([new Push($adapter, $devices, $message)]);
$pusher->push();

Example for GCM:, (*5)

$serverKey = '[path to certification]';
$deviceId = '[device token]';

$devices = new DeviceCollection([new Device($deviceId)]);
$message = new Message('This is a test message');

$adapter = new Gcm($serverKey, AdapterInterface::ENVIRONMENT_DEVELOPMENT);

$pusher = new Pusher([new Push($adapter, $devices, $message)]);
$pusher->push();

Example for APNS:, (*6)

$serverKey = '[path to certification]';
$deviceId = '[device token]';

$devices = new DeviceCollection([new Device($deviceId)]);
$message = new Message('This is a test message');

$adapter = new Apns($serverKey, AdapterInterface::ENVIRONMENT_DEVELOPMENT);

$pusher = new Pusher([new Push($adapter, $devices, $message)]);
$pusher->push();

The Versions

18/11 2017

dev-release/1.1

dev-release/1.1

PHP push notifications to APNS, FCM fork from mxp100/pusher by Yuriy Potemkin

  Sources   Download

Apache-2.0

The Requires

  • ext-json >=1.3.7
  • php ^7.0

 

by Mikhail Mazein

push apns notifications fcm

18/11 2017

dev-master

9999999-dev

PHP push notifications to APNS, FCM fork from mxp100/pusher by Yuriy Potemkin

  Sources   Download

Apache-2.0

The Requires

  • ext-json >=1.3.7
  • php ^7.0

 

by Mikhail Mazein

push apns notifications fcm

18/11 2017

1.1

1.1.0.0

PHP push notifications to APNS, FCM fork from mxp100/pusher by Yuriy Potemkin

  Sources   Download

Apache-2.0

The Requires

  • ext-json >=1.3.7
  • php ^7.0

 

by Mikhail Mazein

push apns notifications fcm

21/03 2017

1.0.x-dev

1.0.9999999.9999999-dev

PHP push notifications to APNS, FCM

  Sources   Download

Apache-2.0

The Requires

  • ext-json >=1.3.7
  • php ^7.0

 

by Yuriy Potemkin

push apns notifications fcm

21/03 2017

1.0

1.0.0.0

PHP push notifications to APNS, FCM

  Sources   Download

Apache-2.0

The Requires

  • ext-json >=1.3.7
  • php ^7.0

 

by Yuriy Potemkin

push apns notifications fcm