PHPackages                             webpower/gcm-application-server - 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. webpower/gcm-application-server

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

webpower/gcm-application-server
===============================

Google Cloud Messaging Application Server port from JAVA to PHP

1.0.4(10y ago)65422Apache License v2.0PHPPHP &gt;=5.3.3

Since Feb 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Web-Power/GCMApplicationServer)[ Packagist](https://packagist.org/packages/webpower/gcm-application-server)[ RSS](/packages/webpower-gcm-application-server/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

GCMApplicationServer
====================

[](#gcmapplicationserver)

[![Build Status](https://camo.githubusercontent.com/3cdee7b50329f5eefa65cd08f259ff45041fd84c69a6674faa5783a33c93f5e4/68747470733a2f2f7472617669732d63692e6f72672f5765622d506f7765722f47434d4170706c69636174696f6e5365727665722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Web-Power/GCMApplicationServer)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/de09a842be04f9a86b85f0a10ef95369fe2e45f5e28b9de84856470ee79c1edb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5765622d506f7765722f47434d4170706c69636174696f6e5365727665722f6261646765732f7175616c6974792d73636f72652e706e673f733d64343137646638353435376564633063356135623161313632613063643737623734323432333036)](https://scrutinizer-ci.com/g/Web-Power/GCMApplicationServer/)

This is a port to PHP of the official [com.google.android.gcm.server JAVA package](http://developer.android.com/reference/com/google/android/gcm/server/package-summary.html).

Usage
-----

[](#usage)

```
$sender = new \WebPower\gcm\server\Sender('your google cloud messaging api key');
$message = \WebPower\gcm\server\Message::builder()
    ->addData('message', 'Hoi')
    ->build();
// Send to a single device using text/plain
$result = $sender->singleSendNoRetry($message, 'registration id');
// or to multiple devices using application/json
$result = $sender->sendNoRetry($message, array('registration id', 'another registration id'));
echo $result; // all value objects support __toString just like the Java code
```

The Api key can be generated at the [apis console](https://code.google.com/apis/console/)

Registration ids are obtained by the Android App when it registers itself on the GCM service. It should be forwarded to your PHP code.

Installation
------------

[](#installation)

```
composer.phar require webpower/gcm-application-server

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~440 days

Total

3

Last Release

3994d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/118490?v=4)[Christiaan Baartse](/maintainers/christiaan)[@christiaan](https://github.com/christiaan)

---

Top Contributors

[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (7 commits)")[![Jeroenwise](https://avatars.githubusercontent.com/u/5501906?v=4)](https://github.com/Jeroenwise "Jeroenwise (1 commits)")

---

Tags

pushgcmjava port

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webpower-gcm-application-server/health.svg)

```
[![Health](https://phpackages.com/badges/webpower-gcm-application-server/health.svg)](https://phpackages.com/packages/webpower-gcm-application-server)
```

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.8k](/packages/symfony-http-kernel)[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k338.8M5.0k](/packages/symfony-http-client)[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k144.5M605](/packages/zircote-swagger-php)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.4k67.4M263](/packages/nelmio-api-doc-bundle)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k106.6M350](/packages/pusher-pusher-php-server)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
