PHPackages                             morriszhao/firebase-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. [Queues &amp; Workers](/categories/queues)
4. /
5. morriszhao/firebase-fcm

ActiveLibrary[Queues &amp; Workers](/categories/queues)

morriszhao/firebase-fcm
=======================

php fcm firebase cloud message push h5 notification web push server worker

v1.1(6y ago)29MITPHPPHP &gt;=5.5

Since Mar 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/morriszhao/firebase-fcm)[ Packagist](https://packagist.org/packages/morriszhao/firebase-fcm)[ RSS](/packages/morriszhao-firebase-fcm/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

google firebase fcm PHP
h5 notification 可由php进行消息推送

安装

```
composer require morriszhao/firebase-fcm
```

使用

客户端获取token：

```
需要翻墙!!!

1、首先到firebase 控制台创建自己的 fireabase项目：A

2、转到项目设置->常规  将项目A firebaseConfig 参数 填写到 html/index.html  html/firebase-messaging-sw.js 相应位置

3、转到项目设置->云消息传递  在下方的网络配置  点击生成私钥  然后将公钥 填写到 html/index.html的usePublicVapidKey()

4、 运行 index.html  生成注册令牌(由于google的限制  必须是https  或者localhost   测试时将localhost 指向html/index.html)

```

服务端推送：

```
具体查看  test/index.php
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2235d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18097520?v=4)[zhaolm](/maintainers/MorrisZhao)[@morriszhao](https://github.com/morriszhao)

---

Top Contributors

[![morriszhao](https://avatars.githubusercontent.com/u/18097520?v=4)](https://github.com/morriszhao "morriszhao (9 commits)")

### Embed Badge

![Health badge](/badges/morriszhao-firebase-fcm/health.svg)

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

PHPackages © 2026

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