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

ActiveLibrary

danielprrazevedo/fcm-php
========================

This package fork has pluritech/fcm-php, https://github.com/Pluritech/fcm-php Portable PHP 5.3

2.0.16(7y ago)0106MITPHPPHP &gt;=5.3.3

Since Dec 7Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (30)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 danielprrazevedo/fcm-php
```

Usage
-----

[](#usage)

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

Simple Send push example.

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

$FCMPHP = new \FCMPHP\FCMPHP(array(
    '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(array(
     '{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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

29

Last Release

2570d ago

Major Versions

1.1.0 → 2.0.02018-05-24

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpFCMpluritechdanielprrazevedo

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/danielprrazevedo-fcm-php/health.svg)](https://phpackages.com/packages/danielprrazevedo-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)[coder966/fcm-simple

PHP library for Firebase Cloud Messaging

131.2k](/packages/coder966-fcm-simple)

PHPackages © 2026

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