PHPackages                             muneebkh2/laravel-fcm-notifications - 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. muneebkh2/laravel-fcm-notifications

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

muneebkh2/laravel-fcm-notifications
===================================

Laravel package for sending push notifications using Firebase Cloud Messaging (FCM).

1.0.5(1y ago)0439↓50%MITPHP

Since Oct 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Muneebkh2/laravel-fcm-notifications)[ Packagist](https://packagist.org/packages/muneebkh2/laravel-fcm-notifications)[ RSS](/packages/muneebkh2-laravel-fcm-notifications/feed)WikiDiscussions master Synced 1mo ago

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

Laravel FCM Notifications
=========================

[](#laravel-fcm-notifications)

A Laravel package for sending push notifications using Firebase Cloud Messaging (FCM).

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

[](#installation)

You can install the package via Composer:

```
composer require muneebkh2/laravel-fcm-notifications
```

### Publish the Configuration

[](#publish-the-configuration)

The configuration file will be automatically published. If you need to manually publish it, you can run:

```
php artisan vendor:publish --provider="Muneebkh2\LaravelFcmNotifications\FCMServiceProvider" --tag="config"
```

### Configuration

[](#configuration)

Add your Firebase credentials and project ID to the .env file:

```
FIREBASE_CREDENTIALS=/path/to/your/firebase_credentials.json
FIREBASE_PROJECT_ID=your-firebase-project-id
```

### Usage

[](#usage)

You can use the FCM facade to send notifications. Here’s an example:

```
