PHPackages                             sarehub/gcm - 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. sarehub/gcm

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

sarehub/gcm
===========

Google Cloud Messaging library for PHP

0.1.2(11y ago)071MITPHP

Since Mar 12Pushed 6y agoCompare

[ Source](https://github.com/SAREhub/gcm-php)[ Packagist](https://packagist.org/packages/sarehub/gcm)[ RSS](/packages/sarehub-gcm/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Google Cloud Messaging Library For PHP
======================================

[](#google-cloud-messaging-library-for-php)

A PHP library that allows you to send messages / push notifications to devices with your Android application installed.

[![Author](https://camo.githubusercontent.com/f03ef2ebfafbb8cd1880a2cc1fab628b7adcb6ca88dddbdc4a63c22b289efaf4/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406368726973626a722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/chrisbjr)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Quick start
-----------

[](#quick-start)

### Required setup

[](#required-setup)

The easiest way to install this library is via Composer.

Create a `composer.json` file and enter the following:

```
{
    "require": {
        "coreproc/gcm": "0.1.*"
    }
}

```

If you haven't yet downloaded your composer file, you can do so by executing the following in your command line:

```
curl -sS https://getcomposer.org/installer | php

```

Once you've downloaded the composer.phar file, continue with your installation by running the following:

```
php composer.phar install

```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

The example below gives you a bare minimum of what to do to send a message / push notification.

```
