mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
5a73173dcf
Fixes the 404s for Laravel and Symfony links (due to case sensitivity) and adds the Livewire and Inertia guides to the Getting Started section
79 lines
5.3 KiB
Markdown
79 lines
5.3 KiB
Markdown
---
|
|
permalink: /
|
|
description: PHPFlasher is an open-source tool that makes it easy to add flash messages to your Laravel or Symfony projects. Improve user interaction with minimal effort using simple, customizable notifications.
|
|
data-controller: flasher
|
|
---
|
|
|
|
<div class="text-center mb-24">
|
|
<img id="logo" src="/static/images/php-flasher-logo.svg" class="h-20 my-8" alt="PHPFlasher">
|
|
<p class="pt-4 mt-4 text-center">
|
|
<a href="https://www.linkedin.com/in/younes--ennaji/">
|
|
<img src="https://img.shields.io/badge/author-@yoeunes-blue.svg" alt="Author Badge" />
|
|
</a>
|
|
<a href="https://github.com/php-flasher/php-flasher">
|
|
<img src="https://img.shields.io/badge/source-php--flasher/php--flasher-blue.svg" alt="Source Code Badge" />
|
|
</a>
|
|
<a href="https://github.com/php-flasher/php-flasher/releases">
|
|
<img src="https://img.shields.io/github/tag/php-flasher/flasher.svg" alt="GitHub Release Badge" />
|
|
</a>
|
|
<a href="https://github.com/php-flasher/flasher/blob/master/LICENSE">
|
|
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="License Badge" />
|
|
</a>
|
|
<a href="https://packagist.org/packages/php-flasher/flasher">
|
|
<img src="https://img.shields.io/packagist/dt/php-flasher/flasher.svg" alt="Packagist Downloads Badge" />
|
|
</a>
|
|
<a href="https://github.com/php-flasher/php-flasher">
|
|
<img src="https://img.shields.io/github/stars/php-flasher/php-flasher.svg" alt="GitHub Stars Badge" />
|
|
</a>
|
|
<a href="https://packagist.org/packages/php-flasher/flasher">
|
|
<img src="https://img.shields.io/packagist/php-v/php-flasher/flasher.svg" alt="Supported PHP Version Badge" />
|
|
</a>
|
|
</p>
|
|
</div>
|
|
|
|
## <i class="fa-duotone fa-list-radio"></i> Introduction
|
|
|
|
<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong> 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. **<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong>** makes it easy to add them to **<i class="fa-brands fa-laravel text-red-900 fa-xl"></i> Laravel** or **<i class="fa-brands fa-symfony text-black fa-xl"></i> 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.
|
|
|
|
---
|
|
|
|
### <i class="fa-duotone fa-list-radio"></i> Notification Types
|
|
|
|
**<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong>** supports different types of notifications:
|
|
|
|
> <div class="mt-2"><span class="text-green-700"><i class="fa-solid fa-circle-check fa-xl"></i> Success</span>: Shows when something works well.</div>
|
|
> <div class="mt-2"><span class="text-blue-600"><i class="fa-solid fa-circle-info fa-xl"></i> Info</span>: Gives information to the user.</div>
|
|
> <div class="mt-2"><span class="text-yellow-600"><i class="fa-solid fa-circle-exclamation fa-xl"></i> Warning</span>: Alerts about potential issues.</div>
|
|
> <div class="mt-2"><span class="text-red-600"><i class="fa-solid fa-circle-xmark fa-xl"></i> Error</span>: Tells the user about an error.</div>
|
|
|
|
---
|
|
|
|
## <i class="fa-duotone fa-list-radio"></i> Why **<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong>**?
|
|
|
|
- **Supports Many Libraries**: Works with popular notification libraries like [toastr.js](/library/toastr/), [SweetAlert 2](/library/sweetalert/), [Noty](/library/noty/), and [Notyf](/library/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 <i class="fa-brands fa-laravel text-red-900 fa-xl"></i> <strong>Laravel</strong> and <i class="fa-brands fa-symfony text-black fa-xl"></i> <strong>Symfony</strong>. You can also create custom adapters.
|
|
- **Developer-Friendly**: Features like autocomplete in PHPStorm make coding easier.
|
|
|
|
---
|
|
|
|
## <i class="fa-duotone fa-list-radio"></i> Getting Started
|
|
|
|
Start using **<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong>** with our easy guides:
|
|
|
|
- [**Symfony Guide**](/symfony/)
|
|
- [**Laravel Guide**](/laravel/)
|
|
- [**Livewire Guide**](/livewire/)
|
|
- [**Inertia Guide**](/inertia/)
|
|
- [**Toastr Library**](/library/toastr/)
|
|
- [**Noty Library**](/library/noty/)
|
|
- [**Notyf Library**](/library/notyf/)
|
|
- [**Sweet Alert Library**](/library/sweetalert/)
|
|
|
|
## <i class="fa-duotone fa-list-radio"></i> Contributions
|
|
|
|
**<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong>** grows with help from the community. We welcome your feedback, code contributions, and ideas. Check out our [GitHub repository](https://github.com/php-flasher/php-flasher) to join the **<strong><span class="text-indigo-900">PHP<span class="text-indigo-500">Flasher</span></span></strong>** community. Let's build something great together! <i class="fa-solid fa-heart text-red-600"></i>
|