PHPackages                             alideveloper49/laravel-spf - 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. alideveloper49/laravel-spf

ActiveLibrary

alideveloper49/laravel-spf
==========================

02PHP

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Alideveloper49/laravel-SPF)[ Packagist](https://packagist.org/packages/alideveloper49/laravel-spf)[ RSS](/packages/alideveloper49-laravel-spf/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-SPF
===========

[](#laravel-spf)

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

[](#installation)

> You can pull the package via composer

```
$ composer require Alideveloper49/laravel-spf
```

Next, You must publish the config file to define your FCM server key :
----------------------------------------------------------------------

[](#next-you-must-publish-the-config-file-to-define-your-fcm-server-key-)

```
$ php artisan vendor:publish --provider="Alideveloper49\Fcm\FcmServiceProvider"
```

This is the contents of the published file :
--------------------------------------------

[](#this-is-the-contents-of-the-published-file-)

```
return [

    /**
     * Set your FCM Server Key
     * Change to yours
     */

    'server_key' => env('FCM_SERVER_KEY', ''),

];
```

Set your FCM Server Key in .env file :
--------------------------------------

[](#set-your-fcm-server-key-in-env-file-)

```
APP_NAME="Laravel"
# ...
FCM_SERVER_KEY=putYourKeyHere
```

Usage
-----

[](#usage)

If You want to send a FCM with just notification parameter, this is an example of usage sending a FCM with only data parameter :
--------------------------------------------------------------------------------------------------------------------------------

[](#if-you-want-to-send-a-fcm-with-just-notification-parameter-this-is-an-example-of-usage-sending-a-fcm-with-only-data-parameter-)

```
$recipients = [
    'clKMv.......',
    'GxQQW.......',
];

fcm()
    ->to($recipients)
    ->priority('high')
    ->timeToLive(0)
    ->data([
        'title' => 'Test FCM',
        'body' => 'This is a test of FCM',
    ])
    ->send();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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/311c97f71444ed0c7ba852fd6e55314bd98395c530331e1df2eb45aa7fe87025?d=identicon)[coderali](/maintainers/coderali)

---

Top Contributors

[![Alideveloper49](https://avatars.githubusercontent.com/u/37513011?v=4)](https://github.com/Alideveloper49 "Alideveloper49 (14 commits)")

### Embed Badge

![Health badge](/badges/alideveloper49-laravel-spf/health.svg)

```
[![Health](https://phpackages.com/badges/alideveloper49-laravel-spf/health.svg)](https://phpackages.com/packages/alideveloper49-laravel-spf)
```

PHPackages © 2026

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