Send GCM Messages via PHP and handle the Result-Codes. Super lightweight!
- php5-curl
Just add it to your composer-file!
Example composer.json file here:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Jan1337z/GCM-via-PHP"
}
],
"require": {
"GCMSender": "dev-master"
}
}
possible index.php
<?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!