PHPackages                             coreproc/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. [API Development](/categories/api)
4. /
5. coreproc/gcm

AbandonedArchivedLibrary[API Development](/categories/api)

coreproc/gcm
============

Google Cloud Messaging library for PHP

0.1.2(11y ago)121.5k6[3 PRs](https://github.com/CoreProc/gcm-php/pulls)MITPHP

Since Mar 12Pushed 6y ago5 watchersCompare

[ Source](https://github.com/CoreProc/gcm-php)[ Packagist](https://packagist.org/packages/coreproc/gcm)[ RSS](/packages/coreproc-gcm/feed)WikiDiscussions master Synced 1mo 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.

```
