If you find PHPFlasher useful, please consider giving it a β star on GitHub π. If you spot any typos or have suggestions, feel free to contribute to the documentation π. Your feedback helps keep the project up-to-date and well-maintained. Thank you
Introduction
PHPFlasher is an open-source tool that helps you add flash messages to your web applications. Flash messages are short messages that give feedback to users after they do something, like submitting a form or encountering an error. These messages improve the user experience by letting users know what happened.
Flash messages are important for interactive applications. PHPFlasher makes it easy to add them to Laravel or Symfony projects. It uses sessions to store messages, so you can set a message on one page and show it on another, without complex setup.
Notification Types
PHPFlasher supports different types of notifications:
Success: Shows when something works well.Info: Gives information to the user.Warning: Alerts about potential issues.Error: Tells the user about an error.
Why PHPFlasher?
- Supports Many Libraries: Works with popular notification libraries like toastr.js, SweetAlert 2, Noty, and Notyf.
- Easy to Use: Designed for all developers, from beginners to experts.
- Flexible: You can customize how the notifications look and behave.
- Framework Compatibility: Integrates smoothly with Laravel and Symfony. You can also create custom adapters.
- Developer-Friendly: Features like autocomplete in PHPStorm make coding easier.
Getting Started
Start using PHPFlasher with our easy guides:
- Symfony Guide
- Laravel Guide
- Livewire Guide
- Inertia Guide
- Toastr Library
- Noty Library
- Notyf Library
- Sweet Alert Library
Contributions
PHPFlasher grows with help from the community. We welcome your feedback, code contributions, and ideas. Check out our GitHub repository to join the PHPFlasher community. Letβs build something great together!