PHPackages                             khaliilii/fgcm - 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. [API Development](/categories/api)
4. /
5. khaliilii/fgcm

ActiveLibrary[API Development](/categories/api)

khaliilii/fgcm
==============

Firebase Google Cloud Messaging::Mohsen Khalili

06PHP

Since May 24Pushed 4y agoCompare

[ Source](https://github.com/khaliilii/fgcm)[ Packagist](https://packagist.org/packages/khaliilii/fgcm)[ RSS](/packages/khaliilii-fgcm/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

fgcm:: Firebase Google Cloud Messaging
======================================

[](#fgcm-firebase-google-cloud-messaging)

#### Firebase Google Cloud Messaging :: Mohsen Khalili

[](#firebase-google-cloud-messaging--mohsen-khalili)

how to install
--------------

[](#how-to-install)

### step1

[](#step1)

#### composer require khaliilii/fgcm

[](#composer-require-khaliiliifgcm)

### step2

[](#step2)

#### if use laravel 5.1 to 5.5

[](#if-use-laravel-51-to-55)

#### add this line on config\\app.php =&gt; providers

[](#add-this-line-on-configappphp--providers)

#### Khaliilii\\Fgcm\\Providers\\FgcmServiceProvider::class,

[](#khaliiliifgcmprovidersfgcmserviceproviderclass)

#### and add this line on config\\app.php =&gt; aliases

[](#and-add-this-line-on-configappphp--aliases)

```
   'FgcmFacade' => Khaliilii\Fgcm\Facade\FgcmFacade::class,

```

### step3

[](#step3)

#### add .env file

[](#add-env-file)

```
FCM_SERVER_KEY=****************** line on

```

#### replace on \*\*\*\* charecter your firebase cloud messaging server key

[](#replace-on--charecter-your-firebase-cloud-messaging-server-key)

how use
-------

[](#how-use)

```
 FgcmFacade::sendPushNotification($token,'test title','message body text');

```

response
--------

[](#response)

```

 "{
"multicast_id":5886777060155138643,
"success":1,
"failure":0,
"canonical_ids":0,
"results":[{"message_id":"0:1543445961541593%df7ddc0fdf7ddc0f"}]}"

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity26

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/29864938?v=4)[mohsen khlili](/maintainers/khaliilii)[@khaliilii](https://github.com/khaliilii)

---

Top Contributors

[![khaliilii](https://avatars.githubusercontent.com/u/29864938?v=4)](https://github.com/khaliilii "khaliilii (5 commits)")

### Embed Badge

![Health badge](/badges/khaliilii-fgcm/health.svg)

```
[![Health](https://phpackages.com/badges/khaliilii-fgcm/health.svg)](https://phpackages.com/packages/khaliilii-fgcm)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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