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

Installs: 3 325

Dependents: 0

Suggesters: 0

Security: 0

Stars: 14

Watchers: 3

Forks: 3

Open Issues: 0

pkg:composer/gianarb/php-gcm

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