symfony/firebase-notifier
Symfony Notifier bridge for Firebase Cloud Messaging. Configure via FIREBASE_DSN and send notifications with platform-specific options using AndroidNotification, IOSNotification, or WebNotification to customize icons, sounds, actions, and more.
https://app.com/cart?item=123).Adopt if:
ChatterInterface into Laravel.Look elsewhere if:
*"This package lets us send cross-platform push notifications (mobile + web) via Firebase with Symfony’s proven Notifier component, cutting development time by 50% compared to custom solutions. It’s a low-risk, scalable choice—backed by the Symfony ecosystem, it reduces tech debt while enabling personalized alerts and deep linking for user retention.
Why it matters:
Ask: Should we prioritize this for [Q3 roadmap item X] to unlock [user engagement metric Y]?"
*"This is a Symfony-powered way to use Firebase FCM in Laravel. Here’s the breakdown:
Pros:
ChatMessage.Trade-offs:
LaravelChatter).Recommendation:
*"To integrate this into Laravel:
composer require symfony/notifier firebase/php-jwt
.env:
FIREBASE_DSN=firebase://USERNAME:PASSWORD@default
use Symfony\Component\Notifier\Message\ChatMessage;
use Symfony\Component\Notifier\Bridge\Firebase\Notification\AndroidNotification;
$message = new ChatMessage('Hello!');
$message->options(
(new AndroidNotification('/topics/news'))
->icon('myicon')
->sound('default')
);
$chatter = new \Symfony\Component\Notifier\Chatter(
new \Symfony\Component\Notifier\Transport\FirebaseTransport($dsn)
);
$chatter->send($message);
Gotchas:
Chatter in a Laravel service (e.g., app/Services/FirebaseNotifier.php).FirebaseTransport for unit tests.Alternatives:
How can I help you explore Laravel packages today?