PHPackages                             muchg0di/larafcm-http-v1 - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. muchg0di/larafcm-http-v1

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

muchg0di/larafcm-http-v1
========================

Implementation of FCM http v1 for laravel 5 (PHP 5.6)

01PHP

Since Aug 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mUcHG0Di/larafcm-http-v1)[ Packagist](https://packagist.org/packages/muchg0di/larafcm-http-v1)[ RSS](/packages/muchg0di-larafcm-http-v1/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

larafcm-http-v1
===============

[](#larafcm-http-v1)

Implementation of FCM http v1 for Laravel 5 (PHP 5.6)

Table of Contents
-----------------

[](#table-of-contents)

- [Disclaimer](#disclaimer)
- [Introduction](#introduction)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [License](#license)

Disclaimer
----------

[](#disclaimer)

This is an implementation for a really old setup, if you want something well implemented and updated, go check  and . Maybe if I have time later, I'll improve this.

Introduction
------------

[](#introduction)

This package provides an implementation of the Firebase Cloud Messaging (FCM) HTTP v1 protocol for Laravel 5 (PHP 5.6). It allows you to send push notifications to Android and iOS devices using the FCM service.

Installation
------------

[](#installation)

To install the package, run the following command in your terminal:

```
composer require muchg0di/larafcm-http-v1
```

### Laravel

[](#laravel)

Register the provider directly in your app configuration file config/app.php config/app.php:

Laravel &gt;= 5.5 provides package auto-discovery, thanks to rasmuscnielsen and luiztessadri who help to implement this feature in Laravel-FCM, the registration of the provider and the facades should not be necessary anymore.

```
'providers' => [
	// ...
	Muchg0di\LarafcmHttpV1\LarafcmHttpV1ServiceProvider::class,
]
```

Add the facade aliases in the same file:

```
'aliases' => [
	// ...
	'LarafcmHttpV1' => Muchg0di\LarafcmHttpV1\Facades\LarafcmHttpV1::class,
]
```

Usage
-----

[](#usage)

To use the package, you can import the Facade `LarafcmHttpV1` call the `createFirebaseDriver` method to create a Firebase driver. Then, you can use the driver to send push notifications.

```
use LarafcmHttpV1;
use Muchg0di\LarafcmHttpV1\DataTransferObjects\NotificationPayloadDto;
use Muchg0di\LarafcmHttpV1\DataTransferObjects\RequestOptionsDto;

$payload = new NotificationPayloadDto('Title', 'Body');
$options = new RequestOptionsDto(30); // timeout in seconds

LarafcmHttpV1::driver('firebase')
    ->sendToTopic('topic-name', $payload, $options);
```

Configuration
-------------

[](#configuration)

You need to configure the package by publishing the configuration file and setting the FCM credentials.

```
php artisan vendor:publish --provider="Muchg0di\LarafcmHttpV1\LarafcmHttpV1ServiceProvider"
```

Then, update the `config/larafcm-http-v1.php` file with your FCM credentials.

```
'drivers' => [
    'firebase' => [
        'driver' => 'firebase',
        'project_id' => env('FIREBASE_PROJECT_ID', 'your project id'),
        'credentials' => env('FIREBASE_CREDENTIALS', 'path/to/your/firebase-credentials.json'),
        'scope' => env('FIREBASE_SCOPE', 'your-firebase-scope'),
    ],
```

License
-------

[](#license)

This package is licensed under the MIT License.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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://www.gravatar.com/avatar/537c0fd1dbc11c590fdd97c49070b3be19db5e441c8cfc4741d59bdbb763fb5f?d=identicon)[mUcHG0Di](/maintainers/mUcHG0Di)

---

Top Contributors

[![mUcHG0Di](https://avatars.githubusercontent.com/u/376076?v=4)](https://github.com/mUcHG0Di "mUcHG0Di (18 commits)")

### Embed Badge

![Health badge](/badges/muchg0di-larafcm-http-v1/health.svg)

```
[![Health](https://phpackages.com/badges/muchg0di-larafcm-http-v1/health.svg)](https://phpackages.com/packages/muchg0di-larafcm-http-v1)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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