Notification Bundle

The Notification Bundle provides a notification model for Symfony applications.

It includes entities, forms, controllers, notifier services, Twig integration, and console commands.

Installation

composer require softspring/notification-bundle:^6.0

What It Provides

  • notification entity and model abstractions
  • controllers and forms for notification workflows
  • notifier services
  • Twig integration to render notifications
  • commands to work with stored notifications

Configuration

Main configuration keys under sfs_notification:

  • notification_class
  • user_class
  • notify_user_command
  • db_driver

The bundle currently supports orm and custom drivers.

Runtime Features

The package includes:

  • a notifier service to create notifications
  • a controller for notification-related UI flows
  • a form type for notification preferences
  • a Twig extension for notification rendering
  • a command to notify users from the console

Typical Usage

Use this bundle when your project needs first-class user notifications instead of ad hoc flash messages or custom tables for each feature.