gianarb/php-gcm

This package is abandoned and no longer maintained. No replacement package was suggested.

Send push notification from your application with Google Cloud Message service

Fund package maintenance!
gianarb

1.0.0 2015-06-24 22:36 UTC

This package is auto-updated.

Last update: 2021-03-15 09:16:10 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Monthly Downloads License
PHP sdk to push android notifications with Google Cloud Manager

Install

composer install gianarb/php-gcm

Getting Started

$client = new GuzzleHttp\Client();
$publisher = new Publisher($client, "googleSendKeyID");

$publisher->push(["firstDeviceToken"], [
    'message'   => '',
    'title'     => '',
    'subtitle'  => '',
    'tickerText'    => '',
    'vibrate'   => 1,
    'sound'     => 1,
    'largeIcon' => 'large_icon',
    'smallIcon' => 'small_icon'
]);

Tests

vendor/bin/phpunit