PHPackages                             redjanym/php-firebase-cloud-messaging - 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. redjanym/php-firebase-cloud-messaging

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

redjanym/php-firebase-cloud-messaging
=====================================

PHP SDK for Firebase Cloud Messaging from Google

v2.0.2(1y ago)39847.9k↑35.9%191MITPHPPHP &gt;=7.4

Since Feb 25Pushed 1y ago3 watchersCompare

[ Source](https://github.com/redjanym/php-firebase-cloud-messaging)[ Packagist](https://packagist.org/packages/redjanym/php-firebase-cloud-messaging)[ Docs](https://github.com/redjanym/php-firebase-cloud-messaging)[ RSS](/packages/redjanym-php-firebase-cloud-messaging/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (16)Used By (1)

PHP Firebase Cloud Messaging
============================

[](#php-firebase-cloud-messaging)

[![Buy Me a Coffee at ko-fi.com](https://camo.githubusercontent.com/7d01e38e117b1a334d2c3459e0155336f76931a16a4180dab87fde963df72a57/68747470733a2f2f617a3734333730322e766f2e6d7365636e642e6e65742f63646e2f6b6f6669322e706e673f763d30)](https://www.paypal.me/ymerajredjan)

PHP SDK for Firebase Cloud Messaging from Google, supporting HTTP V1.

See original Firebase docs:

\#Setup Install via Composer:

```
composer require redjanym/php-firebase-cloud-messaging

```

Or add this to your composer.json and run "composer update":

```
"require": {
    "redjanym/php-firebase-cloud-messaging": "2.*"
}

```

Send message to a Device
========================

[](#send-message-to-a-device)

```
use RedjanYm\FCM\Client;
use RedjanYm\FCM\Notification;
use RedjanYm\FCM\Recipient\Device;

$serviceAccountPath = '/path/to/service-account.json';
$testToken = 'this-is-a-token';

$client = new Client($serviceAccountPath);
$recipient = new Device($testToken);
$notification = new Notification($recipient, 'Title', 'Body', ['key' => 'value']);

$client->send($notification);

```

Topic Support
=============

[](#topic-support)

The current version does not have support for Topics. We are going to add it on v2.1.

Migrating from V1.
==================

[](#migrating-from-v1)

Unfortunately V2 of this package introduces breaking changes. But the new structure of the SDK is still simple and very similar to the previous one. We are sure the migration is going to be very fast and easy.

Interpreting responses
======================

[](#interpreting-responses)

Responses given on the HTTP requests are standard according to the FCM documentations. You may find detailed specifications in this links:

-
-

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance46

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~269 days

Recently: every ~395 days

Total

12

Last Release

407d ago

Major Versions

v1.1.7 → v2.0.02025-01-27

PHP version history (2 changes)v1.0PHP &gt;=5.5

v2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/07a32e6587acf1bc5a3fa4e2be10d791f9b85987136d11a17db5420928793dce?d=identicon)[redjanym](/maintainers/redjanym)

---

Top Contributors

[![redjanym](https://avatars.githubusercontent.com/u/15679866?v=4)](https://github.com/redjanym "redjanym (40 commits)")[![sngrl](https://avatars.githubusercontent.com/u/6196684?v=4)](https://github.com/sngrl "sngrl (10 commits)")[![NelinD](https://avatars.githubusercontent.com/u/10078264?v=4)](https://github.com/NelinD "NelinD (2 commits)")[![amvardo](https://avatars.githubusercontent.com/u/22379671?v=4)](https://github.com/amvardo "amvardo (1 commits)")[![kmarques](https://avatars.githubusercontent.com/u/7290607?v=4)](https://github.com/kmarques "kmarques (1 commits)")[![buryni](https://avatars.githubusercontent.com/u/172052?v=4)](https://github.com/buryni "buryni (1 commits)")[![johann59](https://avatars.githubusercontent.com/u/9280133?v=4)](https://github.com/johann59 "johann59 (1 commits)")

---

Tags

androidfcmgoogle-firebasehacktoberfestiosnotificationsphpcloudgooglenotificationsfirebaseFCMandroidios

### Embed Badge

![Health badge](/badges/redjanym-php-firebase-cloud-messaging/health.svg)

```
[![Health](https://phpackages.com/badges/redjanym-php-firebase-cloud-messaging/health.svg)](https://phpackages.com/packages/redjanym-php-firebase-cloud-messaging)
```

###  Alternatives

[paragraph1/php-fcm

PHP application server for google firebase cloud messaging (FCM)

1991.2M10](/packages/paragraph1-php-fcm)[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)[kedniko/firebase-cloud-messaging-http-v1-php

Firebase cloud messaging http v1 php

124.8k](/packages/kedniko-firebase-cloud-messaging-http-v1-php)[edwinhoksberg/php-fcm

A library for sending Firebase cloud messages and managing user topic subscriptions, device groups and devices.

68328.5k1](/packages/edwinhoksberg-php-fcm)[coder966/fcm-simple

PHP library for Firebase Cloud Messaging

131.2k](/packages/coder966-fcm-simple)[vyconsulting-group/push-notification

PHP wrapper FCM

154.4k](/packages/vyconsulting-group-push-notification)

PHPackages © 2026

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