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

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

albaraam/php-gcm
================

A PHP library for sending messages to devices registered through Google Cloud Messaging

v1.0.0(10y ago)03.7k11MIT LicensePHPPHP &gt;=5.3.0

Since Dec 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/albaraam/php-gcm)[ Packagist](https://packagist.org/packages/albaraam/php-gcm)[ RSS](/packages/albaraam-php-gcm/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (1)

albaraam/php-gcm
================

[](#albaraamphp-gcm)

A PHP library for sending messages to devices registered through Google Cloud Messaging.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require albaraam/php-gcm "~1.0.0"
```

or add

```
"albaraam/php-gcm": "~1.0.0"
```

to the `require` section of your composer.json.

Usage
-----

[](#usage)

```
use albaraam\gcm\GCMNotification;
use albaraam\gcm\GCMMessage;
use albaraam\gcm\GCMClient;

$notification = new GCMNotification("Title","Body");
$notification
	->setIcon("noti")
	->setSound("water.mp3");
.....

$message = new GCMMessage($notification, "ids"); // "ids" parameter can contain a array/single registration token or a topic key
$message
	->setData(['foo'=>'bar', 'baz'=>[1,2,3]])
	->setCollapseKey("collapse-key-1");
.....

$gcm = new GCMClient("YOUR_API_KEY");
$response = $gcm->send($message);

var_dump($response);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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 ~1 days

Total

2

Last Release

3857d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2038883?v=4)[Albaraa Mishlawi](/maintainers/albaraam)[@albaraam](https://github.com/albaraam)

---

Tags

phpgcmphp-gcm

### Embed Badge

![Health badge](/badges/albaraam-php-gcm/health.svg)

```
[![Health](https://phpackages.com/badges/albaraam-php-gcm/health.svg)](https://phpackages.com/packages/albaraam-php-gcm)
```

###  Alternatives

[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76423.5k2](/packages/hannesvdvreken-guzzle-debugbar)

PHPackages © 2026

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