PHPackages                             maximerenou/php-fcm - 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. maximerenou/php-fcm

ActiveLibrary

maximerenou/php-fcm
===================

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

1.0.2(6y ago)015MITPHPPHP &gt;= 7.0

Since Apr 9Pushed 6y agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

PHP-FCM [![Build Status](https://camo.githubusercontent.com/9748146231b7e9bcbc0a6627560079b2cc5ccb4e200bd32169f40a0bfd8df82f/68747470733a2f2f7472617669732d63692e6f72672f6d6178696d6572656e6f752f7068702d66636d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/maximerenou/php-fcm) [![Coverage Status](https://camo.githubusercontent.com/6928ac21b5140ed76f122e363edd90d1143071664f5bd0c1e41ff20dfd9d0da9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6178696d6572656e6f752f7068702d66636d2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/maximerenou/php-fcm?branch=master) [![Packagist](https://camo.githubusercontent.com/ee128995b514dbbe127fac5169314d20c1672821bdf73cba752c43bf91fff0d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6178696d6572656e6f752f7068702d66636d2e7376673f7374796c653d666c6174)](https://packagist.org/packages/maximerenou/php-fcm) [![Documentation](https://camo.githubusercontent.com/e5c311a95068fa723499b5b49a5f9efc0f0810fa09994854baa656c6f23a8a08/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f7068702d66636d2f62616467652f3f76657273696f6e3d6c6174657374)](https://php-fcm.readthedocs.io/en/latest/)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-fcm----)

A PHP library for sending Firebase Cloud Messages and managing user topic subscriptions, device groups and devices.

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

[](#installation)

Installation with composer:

```
composer require maximerenou/php-fcm
```

About this fork
---------------

[](#about-this-fork)

Sound support.

Quickstart
----------

[](#quickstart)

```
// Instantiate the client with the project api_token and sender_id.
$client = new \Fcm\FcmClient($apiToken, $senderId);

// Instantiate the push notification request object.
$notification = new \Fcm\Push\Notification();

// Enhance the notification object with our custom options.
$notification
    ->addRecipient($deviceId)
    ->setTitle('Hello from php-fcm!')
    ->setBody('Notification body')
    ->setSound('custom_sound')
    ->addData('key', 'value');

// Send the notification to the Firebase servers for further handling.
$client->send($notification);
```

Full documentation
------------------

[](#full-documentation)

Read the documentation [here](https://php-fcm.readthedocs.io/en/latest/) or look in the [docs](docs/) directory.

Tests
-----

[](#tests)

Run the unit tests with PHPUnit:

```
vendor/bin/phpunit -c phpunit.dist.xml
```

License
-------

[](#license)

[MIT](LICENSE.md)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2552d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80bcf6ed37c089e47d02a7210fefb2ecd4ebc38c05491f72c0ef2a55fb0536f0?d=identicon)[maximerenou](/maintainers/maximerenou)

---

Top Contributors

[![EdwinHoksberg](https://avatars.githubusercontent.com/u/6866019?v=4)](https://github.com/EdwinHoksberg "EdwinHoksberg (10 commits)")[![maximerenou](https://avatars.githubusercontent.com/u/4728191?v=4)](https://github.com/maximerenou "maximerenou (4 commits)")

---

Tags

googlenotificationsfirebaseFCMFirebase Cloud Messaging

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maximerenou-php-fcm/health.svg)

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

###  Alternatives

[paragraph1/php-fcm

PHP application server for google firebase cloud messaging (FCM)

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

PHP SDK for Firebase Cloud Messaging from Google

39847.9k1](/packages/redjanym-php-firebase-cloud-messaging)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

210964.1k1](/packages/benwilkins-laravel-fcm-notification)[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)

PHPackages © 2026

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