dev-master
9999999-dev https://github.com/Jan1337z/GCM-via-PHPlight weight library to send Google Cloud Messages (GCM) using PHP & curl.
MIT
The Requires
- php >=5.4
The Development Requires
by Jan Meier
gcm google cloud messaging android push
Wallogit.com
2017 © Pedro Peláez
light weight library to send Google Cloud Messages (GCM) using PHP & curl.
Send GCM Messages via PHP and handle the Result-Codes. Super lightweight!, (*2)
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)
light weight library to send Google Cloud Messages (GCM) using PHP & curl.
MIT
gcm google cloud messaging android push