Download the PHP package abdullahfaqeir/fcm without Composer

On this page you can find all versions of the php package abdullahfaqeir/fcm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fcm

Laravel FCM (Firebase Cloud Messaging) Notification Channel

Latest Version on Packagist StyleCI Quality Score Total Downloads

This package makes it easy to send notifications using Firebase Cloud Messaging (FCM) with Laravel 8.x and 9.x.

Disclaimer

This repo is a fork from the original repo but with updated to version 3, check notes below.

Version 3 Released (March 26, 2022)

V3.0.0 has been released with the support of laravel 9 and dropping the support below laravel 8 now the minimum php version is 8.1, as the packages uses php native enums.

Version 2 Released (March 4, 2020)

V2.0.0 has been released and FCM API calls has been migrated from legacy HTTP to HTTP v1 (docs from Firebase here). This is a breaking change so notifications using v1.x should not upgrade to v2.x of this package unless you plan on migrating your notification classes.

Contents

Installation

Install this package with Composer:

Setting up the FCM service

This package now uses the laravel-firebase library to authenticate and make the API calls to Firebase. Follow the configuration steps specified in their readme before using this.

After following their configuration steps, make sure that you've specified your FIREBASE_CREDENTIALS in your .env file.

Usage

After setting up your Firebase credentials, you can now send notifications via FCM by a Notification class and sending it via the FcmChannel::class. Here is an example:

You will have to set a routeNotificationForFcm() method in your notifiable model. For example:

You can also return an array of tokens to send notifications via multicast to different user devices.

Once you have that in place, you can simply send a notification to the user by doing the following:

Available Message methods

The FcmMessage class contains the following methods for defining the payload. All these methods correspond to the available payload defined in the FCM API documentation. Refer to this link to find all the available data you can set in your FCM notification.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of fcm with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.0.1
illuminate/notifications Version ~8.0 || ~9.0 || ~10.0
illuminate/support Version ~8.0 || ~9.0 || ~10.0
kreait/laravel-firebase Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package abdullahfaqeir/fcm contains the following files

Loading the files please wait ....