gianarb / php-gcm
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
Requires
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- phpunit/phpunit: ^4.7
This package is auto-updated.
Last update: 2021-03-15 09:16:10 UTC
README
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