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,896,614
64
| Install | |
|---|---|
composer require php-flasher/flasher |
|
| Latest Version: | v2.6.3 |
| PHP: | >=8.2 |
| License: | MIT |
| Last Updated: | Aug 31, 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...
3,130,547
45
php-flasher/flasher-noty-laravel
Use Noty.js for engaging flash notifications in Laravel with PHPFlasher. Combine...
384,094
6
php-flasher/flasher-toastr-laravel
Leverage Toastr for stylish toast notifications in Laravel with PHPFlasher. Add...
679,885
31
php-flasher/flasher-notyf-laravel
Integrate Notyf's minimalist flash notifications with Laravel via PHPFlasher. En...
442,250
7
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v2.6.3 | >=8.2 | MIT | |
| v2.6.2 | >=8.2 | MIT | |
| v2.6.1 | >=8.2 | MIT | |
| v2.6.0 | >=8.2 | MIT | |
| v2.5.2 | >=8.2 | MIT | |
| v2.5.1 | >=8.2 | MIT | |
| v2.5.0 | >=8.2 | MIT | |
| v2.4.0 | >=8.2 | MIT | |
| v2.3.0 | >=8.2 | MIT | |
| v2.2.2 | >=8.2 | MIT | |
| v2.2.1 | >=8.2 | MIT | |
| v2.2.0 | >=8.2 | MIT | |
| v2.1.6 | >=8.2 | MIT | |
| v2.1.5 | >=8.2 | MIT | |
| v2.1.3 | >=8.2 | MIT | |
| v2.1.2 | >=8.2 | MIT | |
| v2.1.1 | >=8.2 | MIT | |
| v2.1.0 | >=8.2 | MIT | |
| v2.0.4 | >=8.2 | MIT | |
| v2.0.3 | >=8.2 | MIT | |
| v2.0.2 | >=8.2 | MIT | |
| v2.0.1 | >=8.2 | MIT | |
| v2.0.0 | >=8.2 | MIT | |
| v1.15.14 | >=5.3 | MIT | |
| v1.15.13 | >=5.3 | MIT | |
| v1.15.12 | >=5.3 | MIT | |
| v1.15.11 | >=5.3 | MIT | |
| v1.15.10 | >=5.3 | MIT | |
| v1.15.9 | >=5.3 | MIT | |
| v1.15.8 | >=5.3 | MIT |
Showing the latest 30 of 137. See every release on Packagist