2017 © Pedro Peláez
 

library php-gcm

A PHP library for sending messages to devices registered through Google Cloud Messaging

image

albaraam/php-gcm

A PHP library for sending messages to devices registered through Google Cloud Messaging

  • Wednesday, July 27, 2016
  • by albaraam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,498 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

albaraam/php-gcm

A PHP library for sending messages to devices registered through Google Cloud Messaging., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require albaraam/php-gcm "~1.0.0"

or add, (*4)

"albaraam/php-gcm": "~1.0.0"

to the require section of your composer.json., (*5)

Usage


use albaraam\gcm\GCMNotification; use albaraam\gcm\GCMMessage; use albaraam\gcm\GCMClient; $notification = new GCMNotification("Title","Body"); $notification ->setIcon("noti") ->setSound("water.mp3"); ..... $message = new GCMMessage($notification, "ids"); // "ids" parameter can contain a array/single registration token or a topic key $message ->setData(['foo'=>'bar', 'baz'=>[1,2,3]]) ->setCollapseKey("collapse-key-1"); ..... $gcm = new GCMClient("YOUR_API_KEY"); $response = $gcm->send($message); var_dump($response);

The Versions

27/07 2016

dev-master

9999999-dev

A PHP library for sending messages to devices registered through Google Cloud Messaging

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

by Albaraa Mishlawi

php gcm php-gcm

27/07 2016

dev-fix/add-empty-recipient-exception

dev-fix/add-empty-recipient-exception

A PHP library for sending messages to devices registered through Google Cloud Messaging

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

by Albaraa Mishlawi

php gcm php-gcm

08/12 2015

v1.0.0

1.0.0.0

A PHP library for sending messages to devices registered through Google Cloud Messaging

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

by Albaraa Mishlawi

php gcm php-gcm

07/12 2015

v1.0.0-beta

1.0.0.0-beta

A PHP library for sending messages to devices registered through Google Cloud Messaging

  Sources   Download

MIT License

The Requires

  • php >=5.3.0

 

by Albaraa Mishlawi

php gcm php-gcm