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

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

pluritech/fcm-php
=================

This package has the opposite of allows send push notifications for one or more devices using the firebase cloud message. Will be used CURL for communication HTTP with Firebase API on pattern REST.

2.0.15(6y ago)31.1k3MITPHPPHP &gt;=5.3.3

Since Dec 7Pushed 6y ago4 watchersCompare

[ Source](https://github.com/Pluritech/fcm-php)[ Packagist](https://packagist.org/packages/pluritech/fcm-php)[ Docs](https://github.com/Pluritech/fcm-php)[ RSS](/packages/pluritech-fcm-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (29)Used By (0)

Google FCM for PHP (v1)
=======================

[](#google-fcm-for-php-v1)

This repository contains the open source PHP SDK that allows you to access the Google FCM Platform from your PHP app.

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

[](#installation)

The Google FCM PHP SDK can be installed with [Composer](https://getcomposer.org/). Run this command:

```
composer require pluritech/fcm-php
```

Usage
-----

[](#usage)

> **Note:** This version of the Google FCM SDK for PHP requires PHP 5.4 or greater.

Simple Send push example.

```
require_once __DIR__ . '/vendor/autoload.php'; // change path as needed

$FCMPHP = new \FCMPHP\FCMPHP([
    'fcm_server_key' => '{server-key}'
]);

$FCMNotification = new \FCMPHP\FCMNotification();

$FCMNotification->setTitle('{push-title}');
$FCMNotification->setBody('{push-description}');
$FCMNotification->setPriority('{push-priority}'); //high or normal
$FCMNotification->setDevices([
     '{device-id}'
    ,'{device-id}'
]); //One or more devices

$request = $FCMPHP->send($FCMNotification);

//Http error
if($request->getHttpStatusCode() != 200){
    $code = $request->getHttpStatusCode();
    $body = $request->getBody();
}

//One or more failure on send push to FCM
if($failure = $request->hasFailure()){
    $count = $failure['count'];
    $error = $failure['error'];
}
```

Documentation
-------------

[](#documentation)

In progress.

Tests
-----

[](#tests)

In progress.

Contributing
------------

[](#contributing)

Feel free to make your pull request, chip in to suggestion or report issues.

License
-------

[](#license)

MIT © [Guilherme Valentim](mailto:valentim.guilherme@gmail.com)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~41 days

Total

28

Last Release

2498d ago

Major Versions

1.1.0 → 2.0.02018-05-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/55c08bc4c394aa6c1510e83e25eb69d7040b03cdf1892d15efdfa5610725147c?d=identicon)[Guilherme Augusto Silva Valentim](/maintainers/Guilherme%20Augusto%20Silva%20Valentim)

![](https://www.gravatar.com/avatar/6c08ead1466e2abf3900a0b5d63a5d19ab23ad4bedd8f858b6a3372edf77c4af?d=identicon)[nathygmachado](/maintainers/nathygmachado)

---

Top Contributors

[![valentim-guilherme](https://avatars.githubusercontent.com/u/4029126?v=4)](https://github.com/valentim-guilherme "valentim-guilherme (17 commits)")

---

Tags

phpFCMpluritech

### Embed Badge

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

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

###  Alternatives

[paragraph1/php-fcm

PHP application server for google firebase cloud messaging (FCM)

1991.2M10](/packages/paragraph1-php-fcm)[redjanym/php-firebase-cloud-messaging

PHP SDK for Firebase Cloud Messaging from Google

39847.9k1](/packages/redjanym-php-firebase-cloud-messaging)[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)[tomatophp/filament-accounts

Manage your multi accounts inside your app using 1 table with multi auth and a lot of integrations

748.3k7](/packages/tomatophp-filament-accounts)[kedniko/firebase-cloud-messaging-http-v1-php

Firebase cloud messaging http v1 php

124.8k](/packages/kedniko-firebase-cloud-messaging-http-v1-php)[djunehor/laravel-sms

Send SMS from your laravel application

385.3k1](/packages/djunehor-laravel-sms)

PHPackages © 2026

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