{% extends 'base.html.twig' %} {% block title %}Adapters{% endblock %} {% block content %}

Notification Adapters

PHPFlasher supports multiple notification libraries. Choose your favorite!

{# Flasher (Default) #}

Flasher

Default adapter with 17+ themes

The default PHPFlasher adapter with beautiful built-in themes. No additional JavaScript libraries required.

Installation
composer require php-flasher/flasher-symfony
Usage
flash()->success('Operation completed!');
{# Toastr #}

Toastr

Simple, elegant toast notifications

Classic toast notifications with smooth animations. One of the most popular notification libraries.

Installation
composer require php-flasher/flasher-toastr-symfony
Usage
toastr()->success('Data saved successfully!');

// With options
toastr()
    ->closeButton()
    ->progressBar()
    ->positionClass('toast-top-right')
    ->success('Profile updated!');
{# SweetAlert #}

SweetAlert 2

Beautiful, responsive, customizable alerts

Feature-rich modal dialogs with confirmations, inputs, and beautiful animations. Perfect for important user interactions.

Installation
composer require php-flasher/flasher-sweetalert-symfony
Usage
sweetalert()->success('Great job!', 'Success');

// Confirmation dialog
sweetalert()
    ->showDenyButton()
    ->showCancelButton()
    ->confirmButtonText('Save')
    ->denyButtonText("Don't save")
    ->warning('Do you want to save the changes?');
{# Noty #}

Noty

Dependency-free notification library

A flexible, dependency-free notification library with multiple layouts and themes.

Installation
composer require php-flasher/flasher-noty-symfony
Usage
noty()->success('Data saved!');

// With layout options
noty()
    ->layout('topCenter')
    ->timeout(3000)
    ->progressBar()
    ->info('Processing your request...');
{# Notyf #}

Notyf

Minimalist, responsive notifications

A minimalist JavaScript library for toast notifications. Tiny footprint with smooth animations.

Installation
composer require php-flasher/flasher-notyf-symfony
Usage
notyf()->success('Minimal and clean!');

// With options
notyf()
    ->position('x', 'right')
    ->position('y', 'top')
    ->dismissible(true)
    ->ripple(true)
    ->success('File uploaded successfully!');
{% endblock %}