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)19MITPHPPHP &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 3w ago

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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

2290d 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)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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