PHPackages                             fcm/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. [API Development](/categories/api)
4. /
5. fcm/firebase\_cloud\_messaging

ActiveLibrary[API Development](/categories/api)

fcm/firebase\_cloud\_messaging
==============================

111PHP

Since Jun 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/emilperezpiz/firebase_cloud_messaging_php)[ Packagist](https://packagist.org/packages/fcm/firebase_cloud_messaging)[ RSS](/packages/fcm-firebase-cloud-messaging/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Firebase cloud messaging php
============================

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

This library allows integration with Firebase Cloud Messaging

Requirements
============

[](#requirements)

- PHP &gt;=7.2

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

[](#installation)

php composer.phar require fcm/firebase\_cloud\_messaging:dev-main or composer require fcm/firebase\_cloud\_messaging:dev-main

Code Examples
-------------

[](#code-examples)

```
use Fcm\PushNotification;
// Create an instance of the class PushNotification
$fcm = new PushNotification('tokenServer');

// resize image instance
$fcm->sendMessage("clientToken", "New Notification", "message", "https://amappzing.com.br/bundles/app/backend/img/favicon.png", ['body' => 'sending a message'])

// check if the client token is active
$fcm->validateClientToken('clientToken');

// serverToken ==> After the firebase account is created and configured, the token that it returns is the one that should be used here
// clientToken ==> After firebase is configured on the mobile device or the website in charge of displaying push notifications, they will return a token, this will be the one that should be used here
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![emilperezpiz](https://avatars.githubusercontent.com/u/34139102?v=4)](https://github.com/emilperezpiz "emilperezpiz (16 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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