PHPackages                             antonyz89/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. antonyz89/yii2-fcm

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

antonyz89/yii2-fcm
==================

Yii2 Firebase Cloud Messaging adapter ( originally made by understeam )

0.2.2(4y ago)01MITPHP

Since Nov 11Pushed 4y agoCompare

[ Source](https://github.com/AntonyZ89/yii2-fcm)[ Packagist](https://packagist.org/packages/antonyz89/yii2-fcm)[ RSS](/packages/antonyz89-yii2-fcm/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~559 days

Total

4

Last Release

1793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68c187c364cc778fd93b1ca011536893e6fc1e9e9c1b0dfee490fb23904265ae?d=identicon)[AntonyDev](/maintainers/AntonyDev)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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