PHPackages                             vyconsulting-group/push-notification - 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. vyconsulting-group/push-notification

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

vyconsulting-group/push-notification
====================================

PHP wrapper FCM

v1.8(3y ago)154.4k1GPL-3.0-or-laterPHPPHP &gt;=5.3.0

Since Mar 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ChafikHadjAbdouRazack/push-notification)[ Packagist](https://packagist.org/packages/vyconsulting-group/push-notification)[ Docs](https://github.com/ChafikHadjAbdouRazack/push-notification)[ RSS](/packages/vyconsulting-group-push-notification/feed)WikiDiscussions main Synced today

READMEChangelog (9)DependenciesVersions (11)Used By (0)

Wetillix Push Notification Documentation
========================================

[](#wetillix-push-notification-documentation)

`wetillix/push-notification` is a simple and efficient PHP package for sending notifications via Firebase Cloud Messaging (FCM).

---

**Installation**
----------------

[](#installation)

Install the package via Composer:

```
composer require wetillix/push-notification
```

---

**Configuration**
-----------------

[](#configuration)

After installation, prepare your `firebase_credentials.json` file containing your FCM credentials. Store this file securely in your project.

---

**Usage**
---------

[](#usage)

### **Initialization**

[](#initialization)

Import and initialize the service in your project, providing the path to the FCM credentials file in the constructor:

```
use Wetillix\PushNotification\PushNotification;

$pushNotification = new PushNotification('/path/to/firebase_credentials.json');
```

---

### **Sending a Notification to a Specific Device**

[](#sending-a-notification-to-a-specific-device)

Use the `sendPushNotificationToDevice` method to send a notification to a user:

```
$response = $pushNotification->sendPushNotificationToDevice(
    token: 'device_token',
    data: [
        'title' => 'value1',
        'description' => 'value2'
    ]
);
```

---

### **Sending a Notification to a Topic**

[](#sending-a-notification-to-a-topic)

Use the `sendPushNotificationToTopic` method to send a notification to all users subscribed to a topic:

```
$response = $pushNotification->sendPushNotificationToTopic(
    topic: 'topic_name',
    data: [
        'title' => 'value1',
        'description' => 'value2'
    ]
);
```

---

**Contribution**
----------------

[](#contribution)

Contributions are welcome! Follow these steps:

1. Fork the project.
2. Create a new branch: `git checkout -b my-branch`.
3. Make your changes.
4. Submit a Pull Request.

---

**License**
-----------

[](#license)

This project is licensed under the [MIT](LICENSE) license.

---

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 72.3% 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 ~146 days

Recently: every ~277 days

Total

10

Last Release

1286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f554cfe3b610d0925c709b0bc4668cf71685338f21561540fdbb2023c17a3c38?d=identicon)[chafik\_hadj](/maintainers/chafik_hadj)

---

Top Contributors

[![sylla-code](https://avatars.githubusercontent.com/u/207892467?v=4)](https://github.com/sylla-code "sylla-code (34 commits)")[![ChafikHadjAbdouRazack](https://avatars.githubusercontent.com/u/24951221?v=4)](https://github.com/ChafikHadjAbdouRazack "ChafikHadjAbdouRazack (13 commits)")

---

Tags

notificationsFCMandroidiosmessenging

### Embed Badge

![Health badge](/badges/vyconsulting-group-push-notification/health.svg)

```
[![Health](https://phpackages.com/badges/vyconsulting-group-push-notification/health.svg)](https://phpackages.com/packages/vyconsulting-group-push-notification)
```

###  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)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

210964.1k1](/packages/benwilkins-laravel-fcm-notification)[kedniko/firebase-cloud-messaging-http-v1-php

Firebase cloud messaging http v1 php

124.8k](/packages/kedniko-firebase-cloud-messaging-http-v1-php)[edwinhoksberg/php-fcm

A library for sending Firebase cloud messages and managing user topic subscriptions, device groups and devices.

68328.5k1](/packages/edwinhoksberg-php-fcm)

PHPackages © 2026

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