PHPackages                             understeam/yii2-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. understeam/yii2-fcm

AbandonedArchivedYii2-extension

understeam/yii2-fcm
===================

Yii2 Firebase Cloud Messaging adapter

v0.2.0(9y ago)12196.0k↓41.7%6[4 issues](https://github.com/Understeam/yii2-fcm/issues)4MITPHP

Since Nov 11Pushed 9y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (4)

Yii2 Firebase Cloud Messaging
=============================

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

This component wraps [paragraph1/php-fcm](https://packagist.org/packages/paragraph1/php-fcm) library.

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

[](#installation)

Preferred way to install is through [Composer](https://getcomposer.org):

```
$ composer require understeam/yii2-fcm:~0.1 --prefer-dist
```

Configuration
-------------

[](#configuration)

Add component to your application config:

```
...
'components' => [
    'fcm' => [
        'class' => 'understeam\fcm\Client',
        'apiKey' => 'your API key', // Server API Key (you can get it here: https://firebase.google.com/docs/server/setup#prerequisites)
    ],
],
...
```

Usage
-----

[](#usage)

You can find more usage examples [here](https://packagist.org/packages/paragraph1/php-fcm).

```
$note = Yii::$app->fcm->createNotification("test title", "testing body");
$note->setIcon('notification_icon_resource_name')
    ->setColor('#ffffff')
    ->setBadge(1);

$message = Yii::$app->fcm->createMessage();
$message->addRecipient(new Device('your-device-token'));
$message->setNotification($note)
    ->setData(['someId' => 111]);

$response = Yii::$app->fcm->send($message);
var_dump($response->getStatusCode());
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

3475d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1397674?v=4)[Toly](/maintainers/AnatolyRugalev)[@AnatolyRugalev](https://github.com/AnatolyRugalev)

---

Top Contributors

[![AnatolyRugalev](https://avatars.githubusercontent.com/u/1397674?v=4)](https://github.com/AnatolyRugalev "AnatolyRugalev (1 commits)")

### Embed Badge

![Health badge](/badges/understeam-yii2-fcm/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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