Download the PHP package iansltx/gcm-client without Composer
On this page you can find all versions of the php package iansltx/gcm-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package gcm-client
gcm-client
gcm-client is a PHP library for interacting with Google Cloud Messaging for Android's HTTP API. It can be used to send messages to both Android Registration IDs and Notification Keys (for user-based multi-device messaging). It can also create and manipulate Notification Keys.
This library should conform to PSRs 1, 2, and 4, and requires PHP 7.2 or newer.
Install
Via Composer
If you don't want Composer, you may download the source zipball directly from GitHub and load it using a PSR-4 compliant
autoloader. If you don't have such an autoloader, require autoload.php
to get one that works for this library.
Usage
Take a look at the docblocks of Client and Message for more information.
Google changed the preferred location of the notification key field for their message-sending endpoint awhile back. This library has been updated to the new, non-deprecated, location. Additionally, it looks like they're requiring names when updating notification keys now; this used to be optional, hence its placement as the last parameter in the calls above.
As of v1.0, this library uses Google's non-deprecated FCM legacy endpoints (their words, not mind), rather than the old GCM endpoints that'll go offline on or after May 29th, 2019. So, despite the name, this library can be used with Firebase Cloud Messaging after May 2019.
Testing
PHPUnit is currently used for testing.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Ian Littman
- All Contributors
License
This library is BSD 2-clause licensed. Please see License File for more information.
All versions of gcm-client with dependencies
ext-curl Version *
ext-json Version *