PHPackages                             endroid/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. endroid/gcm

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

endroid/gcm
===========

Endroid Google Cloud Messaging

1.3.1(9y ago)49128.2k↓33.3%14[1 issues](https://github.com/endroid/Gcm/issues)[1 PRs](https://github.com/endroid/Gcm/pulls)1MITPHPPHP &gt;=5.4

Since Jul 26Pushed 9y ago5 watchersCompare

[ Source](https://github.com/endroid/Gcm)[ Packagist](https://packagist.org/packages/endroid/gcm)[ Docs](https://github.com/endroid/Gcm)[ RSS](/packages/endroid-gcm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (18)Used By (1)

Endroid Google Cloud Messaging
==============================

[](#endroid-google-cloud-messaging)

*By [endroid](http://endroid.nl/)*

[![Latest Stable Version](https://camo.githubusercontent.com/e17e6872c9feaff48f792394e3c10bf503b60e67d9fdf7d0491ffcbfd08470eb/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e64726f69642f67636d2e737667)](https://packagist.org/packages/endroid/gcm)[![Build Status](https://camo.githubusercontent.com/361c873cdc3e5844bd0e430609e856ade0395ff525769c6afc8bc02eed306f5d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f656e64726f69642f47636d2e706e67)](http://travis-ci.org/endroid/Gcm)[![Total Downloads](https://camo.githubusercontent.com/0d8a790f2ce467b08b5b9ccb64761ce871bc9ecbc729b2a86a66cfbbbd0e6b67/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e64726f69642f67636d2e737667)](https://packagist.org/packages/endroid/gcm)[![Monthly Downloads](https://camo.githubusercontent.com/a9a008fdd42560756f05c64bca5d3db606fa7087c01c43a55219ff0620c011c2/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f656e64726f69642f67636d2e737667)](https://packagist.org/packages/endroid/gcm)[![License](https://camo.githubusercontent.com/abf260f7efc9db1f47d4cd40d0a271fc872072d8137526f5af97207363c8b494/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e64726f69642f67636d2e737667)](https://packagist.org/packages/endroid/gcm)

Google Cloud Messaging is a service that helps developers send data from servers to their Android applications on Android devices. See [Google GCM](http://developer.android.com/guide/google/gcm/index.html) for more information.

Requests with messages targeting 1000+ registration ID's will automatically be chunked and sent in parallel in order to circumvent the maximum imposed by Google. So you don't have to bother about this restriction when using this class.

```
use Endroid\Gcm\Client;

$apiKey = '...';
$client = new Client($apiKey);

// Registration ID's of devices to target
$registrationIds = [
    //...
];

$data = [
    'title' => 'Message title',
    'message' => 'Message body',
];

$success = $client->send($data, $registrationIds);
```

If something went wrong or if you just want to inspect the response objects returned by the GCM server, you can retrieve these using the getResponses() method.

Symfony integration
-------------------

[](#symfony-integration)

Register the Symfony bundle in the kernel.

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Endroid\Gcm\Bundle\EndroidGcmBundle(),
    ];
}
```

The default parameters can be overridden via the configuration.

```
endroid_gcm:
    api_key: '...'
```

Now you can retrieve the client as follows.

```
$client = $this->get('endroid.gcm.client');
```

Versioning
----------

[](#versioning)

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~101 days

Recently: every ~88 days

Total

17

Last Release

3424d ago

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

1.3.0PHP &gt;=5.4.0

1.3.1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea3fc1b297f29579f9861b5fbe3240c0eeafaaaee6e39b45d85d612a04a52fbd?d=identicon)[endroid](/maintainers/endroid)

---

Top Contributors

[![endroid](https://avatars.githubusercontent.com/u/537253?v=4)](https://github.com/endroid "endroid (49 commits)")[![kamilZ](https://avatars.githubusercontent.com/u/2368478?v=4)](https://github.com/kamilZ "kamilZ (2 commits)")[![mente](https://avatars.githubusercontent.com/u/391997?v=4)](https://github.com/mente "mente (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")

---

Tags

symfonybundlecloudgooglepushnotificationnotificationsgcmendroidmessaging

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[redjanym/fcm-bundle

A Symfony Bundle for projects to send notifications in mobile devices through Firebase Cloud Messaging HTTP V1 API

43453.0k](/packages/redjanym-fcm-bundle)[mcfedr/awspushbundle

A set of services to simplify using Aws to send push notifications

40378.6k1](/packages/mcfedr-awspushbundle)[redjanym/php-firebase-cloud-messaging

PHP SDK for Firebase Cloud Messaging from Google

39847.9k1](/packages/redjanym-php-firebase-cloud-messaging)

PHPackages © 2026

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