PHPackages                             djiele/simple-fire-cloud-messaging - 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. djiele/simple-fire-cloud-messaging

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

djiele/simple-fire-cloud-messaging
==================================

Send webpush notification, managage subscription to topics and groups

02PHP

Since Dec 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/djiele/simple-firebase-cloud-messaging)[ Packagist](https://packagist.org/packages/djiele/simple-fire-cloud-messaging)[ RSS](/packages/djiele-simple-fire-cloud-messaging/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Firebase Cloud Messaging Library
================================

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

Another FCM (Firebase Cloud Messaging) library, light and easy to use.

Note: this library wrap the legacy Firebase HTTP API, i don't know when it will become obsolete.

##### Installation

[](#installation)

You can install the package via composer:

```
composer require djiele/simple-fire-cloud-messaging "dev-master"

```

##### Simple usage

[](#simple-usage)

```
require_once __DIR__'./vendor/autoload.php';
use Djiele\Fcm\WebPushNotifications;
$notifier = new WebPushNotifications('', '');
$notifier->batchSubscribeTopic('', ['', '']);
$response = $notifier->sendToTopic('', 'What time is it?', 'The time is ' . date('H:i:s'), ['lottery' => (0 == rand(0, 100)%2)]);
print_r($response);
```

##### Features

[](#features)

Subscribe one or more devices to a given topic

```
$response = $notifier->batchSubscribeTopic('', ['', '']);
print_r($response);```
```

Unsubscribe one or more devices to a given topic

```
$response = $notifier->batchUnsubscribeTopic('', ['', '']);
print_r($response);
```

Subscribe a single device to a topic

```
$response = $notifier->subscribeTopic('', '');
print_r($response);
```

Send notification to a topic

```
$response = $notifier->sendToTopic('', 'What time is it?', 'The time is ' . date('H:i:s'), ['lottery' => (0 == rand(0, 100)%2)]);
print_r($response);
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![djiele](https://avatars.githubusercontent.com/u/40306999?v=4)](https://github.com/djiele "djiele (3 commits)")

### Embed Badge

![Health badge](/badges/djiele-simple-fire-cloud-messaging/health.svg)

```
[![Health](https://phpackages.com/badges/djiele-simple-fire-cloud-messaging/health.svg)](https://phpackages.com/packages/djiele-simple-fire-cloud-messaging)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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