PHPackages                             juniorlemes/fcm-php-http-v1 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. juniorlemes/fcm-php-http-v1

ActiveLibrary[HTTP &amp; Networking](/categories/http)

juniorlemes/fcm-php-http-v1
===========================

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

v0.0.1(1y ago)03MITPHPPHP &gt;=5.3.3

Since Sep 26Pushed 1y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)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 juniorlemes/fcm-php-http-v1
```

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

19

—

LowBetter than 10% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

589d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6675cb5057b9f90ac3a9c57938671fdec608d0d6d46b46ea6acb9b7f3d5371b1?d=identicon)[juniorlemes](/maintainers/juniorlemes)

---

Top Contributors

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

---

Tags

phpFCMjuniorlemespluritech

### Embed Badge

![Health badge](/badges/juniorlemes-fcm-php-http-v1/health.svg)

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

###  Alternatives

[hannesvdvreken/guzzle-debugbar

A Guzzle middleware that logs requests to debugbar's timeline

76410.4k1](/packages/hannesvdvreken-guzzle-debugbar)

PHPackages © 2026

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