PHPackages                             iansltx/gcm-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. iansltx/gcm-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

iansltx/gcm-client
==================

A client for Firebase Cloud Messaging for Android's message API (via Legacy endpoints)

1.0.4(4y ago)0292BSD-2-ClausePHPPHP ^7.2

Since Apr 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iansltx/gcm-client)[ Packagist](https://packagist.org/packages/iansltx/gcm-client)[ Docs](https://github.com/iansltx/gcm-client)[ RSS](/packages/iansltx-gcm-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

gcm-client
==========

[](#gcm-client)

[![Author](https://camo.githubusercontent.com/d6df2f9eb6f5dde6cc2b1888217c5261753ed234819e5e7018b03d72340d24f6/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d4069616e736c74782d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/iansltx)[![Latest Version](https://camo.githubusercontent.com/b29844e428f8d43713656c4e7c9aa46e2de2739143f6cfc60f99d263182658c2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f69616e736c74782f67636d2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/iansltx/gcm-client/releases)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

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
-------

[](#install)

Via Composer

```
$ composer require iansltx/gcm-client
```

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
-----

[](#usage)

```
