2017 © Pedro Peláez
 

library php-push-helper

A simple helper library to send push notifications in php using services like fcm, apns etc.

image

ardabeyazoglu/php-push-helper

A simple helper library to send push notifications in php using services like fcm, apns etc.

  • Sunday, July 9, 2017
  • by ardabeyazoglu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Latest Stable Version License, (*1)

About

A php helper class to send push notifications to different services. Currently, it only supports APNS and Google's FCM., (*2)

Features

  • By using APNS, you can emit messages to iOS
  • By using FCM, You can emit messages to iOS, Android, Browsers (Service Workers) or any client listening Firebase Messaging Service

Installation

composer install ardabeyazoglu/php-push-helper

Usage

    $fcmApiKey = "YOUR_FCM_API_KEY";

    $push = new \Push\Client();
    $push->setFcm($fcmApiKey);

    // send using fcm
    $regToken = "YOUR_DEVICE_TOKEN";
    $result = $push->emit($regToken, array(
         "title" => "Test push title",
         "body" => "That's it!",
         "custom" => "my custom data"
     ));

Please see the docs and examples, (*3)

ToDo

  • More services to integrate (Window Phone 8, UWP, Web Push etc.)
  • Writing a helper class to produce json payloads

The Versions

09/07 2017

dev-master

9999999-dev https://github.com/ardabeyazoglu/php-push-helper

A simple helper library to send push notifications in php using services like fcm, apns etc.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

The Development Requires

notification push gcm apns fcm aps firebase-messaging

09/07 2017

v0.1.0

0.1.0.0 https://github.com/ardabeyazoglu/php-push-helper

A simple helper library to send push notifications in php

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *
  • ext-json *

 

notification push gcm apns fcm aps firebase-messaging