Download the PHP package avto-dev/firebase-notifications-laravel without Composer

On this page you can find all versions of the php package avto-dev/firebase-notifications-laravel. 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 firebase-notifications-laravel

Laravel

Here's the latest documentation on Laravel Notifications System: https://laravel.com/docs/master/notifications

Firebase notifications channel for Laravel applications

Version PHP Version Build Status Coverage Downloads count License

This package makes it easy to send notifications using Firebase with Laravel 5.

Contents

Installation

Installed composer is required (how to install composer).

You need to fix the major version of package.

Laravel 5.5 and above uses Package Auto-Discovery, so doesn't require you to manually register the service-provider. Otherwise you must add the service provider to the providers array in ./config/app.php:

Setting up the Firebase service

You need to set up firebase channel in config file ./config/services.php.

To generate a private key file for your service account:

  1. In the Firebase console, open Settings > Service Accounts.
  2. Click Generate New Private Key, then confirm by clicking Generate Key.
  3. Securely store the JSON file containing the key. You'll need this JSON file to complete the next step.

Next select the "driver" file or config contains credintails for Firebase service account in ./config/services.php:

Usage

Now you can use the channel in your via() method inside the notification as well as send a push notification:

Available Message methods

This pakage supports all fields from HTTP v1 FCM API. Message class contains setters for all the fields:

Field Type
data array
title string
body string
android AndroidFcmPlatformSettings
webpush WebpushFcmPlatformSettings
apns AppleFcmPlatformSettings

PlatformSettings classes contain platform secific setters

Testing

For package testing we use phpunit framework. Just write into your terminal (installed docker-ce is required):

Changes log

Release date Commits since latest release

Changes log can be found here.

Support

Issues Issues

If you will find any package errors, please, make an issue in current repository.

Security

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

Credits

License

This is open-sourced software licensed under the MIT License.


All versions of firebase-notifications-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
ext-mbstring Version *
google/apiclient Version ^2.2
guzzlehttp/guzzle Version ~7.5
illuminate/notifications Version ~10.0 || ~11.0
illuminate/config Version ~10.0 || ~11.0
illuminate/contracts Version ~10.0 || ~11.0
illuminate/support Version ~10.0 || ~11.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 avto-dev/firebase-notifications-laravel contains the following files

Loading the files please wait ....