php-flasher/flasher
The foundational PHP library for PHPFlasher, enabling the creation of framework-agnostic flash notifications. Ideal for building custom integrations or for use in PHP projects.
4,748,157
63
| Install | |
|---|---|
composer require php-flasher/flasher |
|
| Latest Version: | v2.6.1 |
| PHP: | >=8.2 |
| License: | MIT |
| Last Updated: | Apr 13, 2026 |
| Links: | GitHub · Packagist |
Maintainer: yoeunes
PHPFlasher Core
Framework-agnostic flash notifications library for PHP. Build custom integrations or use with any PHP project.
Requirements
- PHP >= 8.2
Installation
composer require php-flasher/flasher
Quick Start
// Success notification
flash('Operation completed successfully!', 'success');
// Error notification
flash('An error occurred.', 'error');
// With options
flash('Profile updated!', 'success', [
'timeout' => 5000,
'position' => 'top-right',
]);
// With translation
flash('Welcome back!', 'info', [
'translate' => true,
'locale' => 'en',
]);
Key Features
- Framework Agnostic: Works with Laravel, Symfony, or any PHP project
- Plugin System: Extensible architecture for adding custom adapters
- Stamp Pattern: Flexible metadata system for notifications
- Storage Management: Multiple storage backends (session, array, etc.)
- Event System: Event-driven architecture for customization
- Response Handling: HTML and JSON response formats
Documentation
Complete documentation: php-flasher.io
License
Related Packages
php-flasher/flasher-laravel
Seamlessly integrate flash notifications into your Laravel applications with PHP...
2,993,015
44
php-flasher/flasher-symfony
Integrate flash notifications into Symfony projects effortlessly with PHPFlasher...
1,338,983
13
php-flasher/flasher-sweetalert-laravel
Incorporate SweetAlert's interactive notifications into Laravel applications wit...
60,934
9
php-flasher/flasher-noty-symfony
Bring Noty.js flash notifications to Symfony projects using PHPFlasher. Leverage...
384,115
5
bulfaitelo/flasher-laravel
PHPFlasher - A powerful & easy-to-use package for adding flash messages to Larav...
7
0