2017 © Pedro Peláez
 

library gcm-sender

light weight library to send Google Cloud Messages (GCM) using PHP & curl.

image

janmeier/gcm-sender

light weight library to send Google Cloud Messages (GCM) using PHP & curl.

  • Tuesday, November 3, 2015
  • by Jan1337z
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GCM-via-PHP

Build Status, (*1)

Send GCM Messages via PHP and handle the Result-Codes. Super lightweight!, (*2)

Module Requirements:

  • php5-curl

Usage Example

Just add it to your composer-file!, (*3)

Example composer.json file here:, (*4)

{
    "repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Jan1337z/GCM-via-PHP"
    }
    ],
    "require": {
        "GCMSender": "dev-master"
    }
}

possible index.php, (*5)

<?php
    require 'vendor/autoload.php';
    $sender = new GCM\Sender("YOUR_API_KEY");
    $sender->setRecipients(array("a_android_client_registration_id"));
    $sender->sendMessage(array("message" => "some_content"));
?>

more following!, (*6)

The Versions

03/11 2015

dev-master

9999999-dev https://github.com/Jan1337z/GCM-via-PHP

light weight library to send Google Cloud Messages (GCM) using PHP & curl.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Jan Meier

gcm google cloud messaging android push