{% extends 'base.html.twig' %} {% block title %}Adapters{% endblock %} {% block content %}
PHPFlasher supports multiple notification libraries. Choose your favorite!
Default adapter with 17+ themes
The default PHPFlasher adapter with beautiful built-in themes. No additional JavaScript libraries required.
composer require php-flasher/flasher-symfony
flash()->success('Operation completed!');
Simple, elegant toast notifications
Classic toast notifications with smooth animations. One of the most popular notification libraries.
composer require php-flasher/flasher-toastr-symfony
toastr()->success('Data saved successfully!');
// With options
toastr()
->closeButton()
->progressBar()
->positionClass('toast-top-right')
->success('Profile updated!');
Beautiful, responsive, customizable alerts
Feature-rich modal dialogs with confirmations, inputs, and beautiful animations. Perfect for important user interactions.
composer require php-flasher/flasher-sweetalert-symfony
sweetalert()->success('Great job!', 'Success');
// Confirmation dialog
sweetalert()
->showDenyButton()
->showCancelButton()
->confirmButtonText('Save')
->denyButtonText("Don't save")
->warning('Do you want to save the changes?');
Dependency-free notification library
A flexible, dependency-free notification library with multiple layouts and themes.
composer require php-flasher/flasher-noty-symfony
noty()->success('Data saved!');
// With layout options
noty()
->layout('topCenter')
->timeout(3000)
->progressBar()
->info('Processing your request...');
Minimalist, responsive notifications
A minimalist JavaScript library for toast notifications. Tiny footprint with smooth animations.
composer require php-flasher/flasher-notyf-symfony
notyf()->success('Minimal and clean!');
// With options
notyf()
->position('x', 'right')
->position('y', 'top')
->dismissible(true)
->ripple(true)
->success('File uploaded successfully!');