PHPackages                             since/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. since/fcm

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

since/fcm
=========

FCM

1.0(6y ago)011MITPHPPHP ^7.1CI failing

Since Jun 19Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

fcm
===

[](#fcm)

谷歌fcm推送

安装
--

[](#安装)

> composer require since/fcm dev-master

### 调用例子

[](#调用例子)

```
use since\Fcm;
class Index
{

    public function index(){
        $config=[
            'key'=>'谷歌服务器的key',
            'project_id'=>'项目id',
            'google_server'=>'firebase的json文件路径'
        ];
        $register_token='设备获取到的token';
        # 订阅
        $topic_name = "news";		//自定义的主题名称 字符串
        $Fcm= new Fcm($config);
        //$Fcm->addManyTopic($topic_name,$register_tokens)//添加到多设备主题
        $Fcm->addTopic($topic_name,$register_token);//推送单设备主题
        $sendDate=[
            'data'=>["story_id" => 'story_12345'],
            'notification'=>[
                'title' => 'title',
                'body' => 'New news story available.',
                'image'=>'https://xxx.xxx.com/xxx.png',
            ],
            'topic'=>$topic_name,
        ];
        $result=$Fcm->sendTopicMessage($sendDate);			//主题推送消息
    }
}

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Unknown

Total

1

Last Release

2250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41a6543979942d685e7df398addd15acf91e076b44b5539a2d6092dd1df42697?d=identicon)[zhan11400](/maintainers/zhan11400)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[oat-sa/tao-core

TAO core extension

64147.9k151](/packages/oat-sa-tao-core)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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