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

ActiveLibrary

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 2mo ago

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

3810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c2e76ed162f4216d1395fcc22847f007b0e023a15220bcc90634a2d5b210349?d=identicon)[albaraam](/maintainers/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

[paragraph1/php-fcm

PHP application server for google firebase cloud messaging (FCM)

1991.2M10](/packages/paragraph1-php-fcm)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)[kedniko/firebase-cloud-messaging-http-v1-php

Firebase cloud messaging http v1 php

124.8k](/packages/kedniko-firebase-cloud-messaging-http-v1-php)[albaraam/php-gcm-apns

A PHP Library for sending messages to devices (Android &amp; IOS) through GCM and Apns (respectively).

133.6k1](/packages/albaraam-php-gcm-apns)

PHPackages © 2026

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