Download the PHP package heyharpreetsingh/fcm without Composer

On this page you can find all versions of the php package heyharpreetsingh/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

Push notification using FCM (Firebase Cloud Messaging)

Description

Send a push notification to user mobile, and web using FCM (Firebase Cloud Messaging).

Installing via Composer

Composer.

Next, Register the service provider in file bootstrap/providers.php for L11 AND config/app.php in the providers key for l10

Next, Generate new private key from your Firebase:

In order to get this file, let’s go to your Firebase projects page, then select your project and as shown below, go to Project Settings.

Click on the Service accounts tab, then Generate new private key.

A file named -firebase-adminsdk-.json get generated, and it is your ServiceAccount.json file! Rename it (or change the path) and you’re ready to go.

⚠️ Your file can be generated only 1 time, if you create a new key, it will be a different one. Although, your previous key/file will still working until you decide to delete it (click on Manage service account permissions).

Next, Put your ServiceAccount.json file in your project storage directory and add the name of json file in your project .env file:

Send a push notification on mobile(android, ios), and web.

use a FCMFacade to send a notification

You can pass additional data using the official doc of FCM.

- https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages/send
- https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#Message

If you have any issue or suggestion feel free to contact.

License

Open-sourced software licensed under the MIT license.


All versions of fcm with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
google/auth Version ^1.41
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 heyharpreetsingh/fcm contains the following files

Loading the files please wait ....