PHPackages                             daldan26/fcmv1 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. daldan26/fcmv1

ActiveLibrary[HTTP &amp; Networking](/categories/http)

daldan26/fcmv1
==============

FCM HTTP V1 packages

v1.0.5(8mo ago)020MITPHP

Since Jul 2Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/davidaldan/fcmv1)[ Packagist](https://packagist.org/packages/daldan26/fcmv1)[ RSS](/packages/daldan26-fcmv1/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Laravel FCM Http V1 API Package
===============================

[](#laravel-fcm-http-v1-api-package)

A [Laravel](https://laravel.com/) package that lets you use the new FCM Http V1 API and send push notifications with ease.

### Firebase

[](#firebase)

1. Go to the [Firebase console](https://console.firebase.google.com/u/0/).

### Laravel

[](#laravel)

```
FCM_API_KEY=""
FCM_AUTH_DOMAIN=""
FCM_PROJECT_ID=""
FCM_STORAGE_BUCKET=""
FCM_MESSAGIN_SENDER_ID=""
FCM_APP_ID=""
FCM_JSON=""
FCM_API_SERVER_KEY=
```

4. Package installation

```
composer require daldan26/fcmv1

```

5. Register the provider in config/app.php

```
Daldan26\Fcmv1\FcmProvider::class,
```

6. Publish config file

```
php artisan vendor:publish --tag=fcmv1 --ansi --force

```

Usage
-----

[](#usage)

### Topics

[](#topics)

Topics are used to make groups of device tokens. They will allow you to send notification directly to the topic where users are registered in.

#### Subscribe

[](#subscribe)

To subscribe tokens to a topic :

```
use Daldan26\Fcmv1\FcmTopicHelper;

$tokens = ["first token", ... , "last token"];
FcmTopicHelper::subscribeToTopic($tokens, "myTopic");
```

#### Unsubscribe

[](#unsubscribe)

```
use Daldan26\Fcmv1\FcmTopicHelper;

$tokens = ["first token", ... , "last token"];
FcmTopicHelper::unsubscribeToTopic($tokens, "myTopic");
```

#### List subscriptions

[](#list-subscriptions)

```
use Daldan26\Fcmv1\FcmTopicHelper;

$token = "your awesome device token";
FcmTopicHelper::getTopicsByToken($token);
```

Notification
------------

[](#notification)

You can send notification to specific user or to topics.

### Send to tokens

[](#send-to-tokens)

```
use Daldan26\Fcmv1\FcmNotification;

$notify = new FcmNotification();
$notify->setTitle("Title")->setBody("Message here")->setToken(["token_here"])->setClickAction("NEWS")->send();
```

### Send to topic

[](#send-to-topic)

```
use Daldan26\Fcmv1\FcmNotification;

$notify = new FcmNotification();
$notify->setTitle("Title")->setBody("Message here")->setTopic("general_topic")->setClickAction("NEWS")->send();
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance60

Regular maintenance activity

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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 ~95 days

Recently: every ~119 days

Total

6

Last Release

253d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11914252?v=4)[David Aldan](/maintainers/davidaldan)[@davidaldan](https://github.com/davidaldan)

### Embed Badge

![Health badge](/badges/daldan26-fcmv1/health.svg)

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

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[mach3/google-spreadsheet

Google spreadsheet client

3220.2k](/packages/mach3-google-spreadsheet)

PHPackages © 2026

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