Skip to content

Installation

Redjan Ymeraj edited this page Jan 27, 2025 · 3 revisions

Installation

Step 1: Download the Bundle

Execute the following command to download the latest stable version of this bundle:

$ composer require redjanym/fcm-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new RedjanYm\FCMBundle\RedjanYmFCMBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Configuration

On your app/config.yml file add this configuration and insert your Firebase API Key that you can generate in the Firebase Console.

redjan_ym_fcm:
    service_account_file: "path/to-/your/file.json"

Go to Send Device Notifications

Clone this wiki locally