symfony/firebase-notifier

Symfony Firebase Notifier Bridge

Maintainers

👁 fabpot

Package info

github.com/symfony/firebase-notifier

Homepage

Type:symfony-notifier-bridge

pkg:composer/symfony/firebase-notifier

Statistics

Installs: 916 545

Dependents: 2

Suggesters: 0

Stars: 12

v8.1.0 2026-05-29 05:06 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ee7cd6138a5d85d3f0a46bea9bdcab7925e2098a

notifierfirebase

This package is auto-updated.

Last update: 2026-06-05 06:49:18 UTC


README

Provides Firebase integration for Symfony Notifier.

DSN example

FIREBASE_DSN=firebase://USERNAME:PASSWORD@default

where:

  • USERNAME is your Firebase username
  • PASSWORD is your Firebase password

Adding Interactions to a Message

With a Firebase message, you can use the AndroidNotification, IOSNotification or WebNotification classes to add message options.

use Symfony\Component\Notifier\Message\ChatMessage;
use Symfony\Component\Notifier\Bridge\Firebase\Notification\AndroidNotification;

$chatMessage = new ChatMessage('');

// Create AndroidNotification options
$androidOptions = (new AndroidNotification('/topics/news', []))
 ->icon('myicon')
 ->sound('default')
 ->tag('myNotificationId')
 ->color('#cccccc')
 ->clickAction('OPEN_ACTIVITY_1')
 // ...
 ;

// Add the custom options to the chat message and send the message
$chatMessage->options($androidOptions);

$chatter->send($chatMessage);

Sponsor

This package is looking for a backer.

Help Symfony by sponsoring its development!

Resources