Download the PHP package php-flasher/php-flasher without Composer
On this page you can find all versions of the php package php-flasher/php-flasher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-flasher/php-flasher
More information about php-flasher/php-flasher
Files in php-flasher/php-flasher
Download php-flasher/php-flasher
More information about php-flasher/php-flasher
Files in php-flasher/php-flasher
Vendor php-flasher
Package php-flasher
Short Description The core repository for PHPFlasher, hosting the source code, contributions, issue tracking, and discussions for the PHPFlasher project. This mono-repo serves as the hub for development and community engagement.
License MIT
Homepage https://php-flasher.io
Package php-flasher
Short Description The core repository for PHPFlasher, hosting the source code, contributions, issue tracking, and discussions for the PHPFlasher project. This mono-repo serves as the hub for development and community engagement.
License MIT
Homepage https://php-flasher.io
Please rate this library. Is it a good library?
Informations about the package php-flasher
## Table of Contents - [About PHPFlasher](#about-phpflasher) - [Features](#features) - [Supported Versions](#supported-versions) - [Installation](#installation) - [Core Package](#core-package) - [Adapters](#adapters) - [Quick Start](#quick-start) - [Usage Examples](#usage-examples) - [Adapters Overview](#adapters-overview) - [Official Documentation](#official-documentation) - [Contributors and Sponsors](#contributors-and-sponsors) - [Contact](#contact) - [License](#license) ## About PHPFlasher PHPFlasher is an open-source tool that helps you add flash messages to your web applications. Flash messages are short notifications that provide feedback to users after they perform actions, such as submitting a form or encountering an error. These messages enhance the user experience by informing users about the outcomes of their actions. PHPFlasher simplifies the process of integrating flash messages into **Laravel** and **Symfony** projects. It uses sessions to store messages, allowing you to set a message on one page and display it on another without complex setup. ## Features - **Multiple Adapters**: Supports Laravel, Symfony, Toastr, Noty, SweetAlert, and more. - **Flexible Configuration**: Customize the appearance and behavior of flash messages. - **Extensible**: Easily integrate with various frontend libraries and frameworks. - **Intuitive API**: Simple functions to create and manage flash messages. ## Supported Versions | PHPFlasher Version | PHP Version | Symfony Version | Laravel Version | |--------------------|-------------|-----------------|-----------------| | **v2.x** | ≥ 8.2 | ≥ 7.2 | ≥ 11 | | **v1.x** | ≥ 5.3 | ≥ 2.0 | ≥ 4.0 | > **Note:** If your project uses PHP, Symfony, or Laravel versions below the requirements for PHPFlasher v2.x, please use [PHPFlasher v1.x](https://github.com/php-flasher/php-flasher/tree/1.x). ## Installation ### Core Package Install the core PHPFlasher package via Composer: - **For Laravel:** After installation, set up the necessary assets: > **Note:** PHPFlasher automatically injects the necessary JavaScript and CSS assets into your Blade templates. No additional steps are required for asset injection. - **For Symfony:** After installation, set up the necessary assets: > **Note:** PHPFlasher automatically injects the necessary JavaScript and CSS assets into your Twig templates. No additional steps are required for asset injection. ### Adapters PHPFlasher provides various adapters for different frameworks and notification libraries. Below is an overview of available adapters: #### Toastr - [flasher-toastr](https://github.com/php-flasher/flasher-toastr) - Core Toastr Adapter - [flasher-toastr-laravel](https://github.com/php-flasher/flasher-toastr-laravel) - Laravel Adapter - [flasher-toastr-symfony](https://github.com/php-flasher/flasher-toastr-symfony) - Symfony Adapter #### Noty - [flasher-noty](https://github.com/php-flasher/flasher-noty) - Core Noty Adapter - [flasher-noty-laravel](https://github.com/php-flasher/flasher-noty-laravel) - Laravel Adapter - [flasher-noty-symfony](https://github.com/php-flasher/flasher-noty-symfony) - Symfony Adapter #### Notyf - [flasher-notyf](https://github.com/php-flasher/flasher-notyf) - Core Notyf Adapter - [flasher-notyf-laravel](https://github.com/php-flasher/flasher-notyf-laravel) - Laravel Adapter - [flasher-notyf-symfony](https://github.com/php-flasher/flasher-notyf-symfony) - Symfony Adapter #### SweetAlert - [flasher-sweetalert](https://github.com/php-flasher/flasher-sweetalert) - Core SweetAlert Adapter - [flasher-sweetalert-laravel](https://github.com/php-flasher/flasher-sweetalert-laravel) - Laravel Adapter - [flasher-sweetalert-symfony](https://github.com/php-flasher/flasher-sweetalert-symfony) - Symfony Adapter For detailed installation and usage instructions for each adapter, refer to their respective [README.md](https://github.com/php-flasher/flasher-toastr). ## Quick Start To display a notification message, you can either use the `flash()` helper function or obtain an instance of `flasher` from the service container. Then, before returning a view or redirecting, call the desired method (`success()`, `error()`, etc.) and pass in the message to be displayed. ### Using the `flash()` Helper ### Using the `flasher` Service ## Usage Examples ### Success Message ### Error Message ### Info Message ### Warning Message ### Passing Options ## Adapters Overview PHPFlasher supports various adapters to integrate seamlessly with different frameworks and frontend libraries. Below is an overview of available adapters: | Adapter Repository | Description | |-----------------------------------------------------------------------------------------|--------------------------------| | [flasher-laravel](https://github.com/php-flasher/flasher-laravel) | Laravel framework adapter | | [flasher-symfony](https://github.com/php-flasher/flasher-symfony) | Symfony framework adapter | | [flasher-toastr-laravel](https://github.com/php-flasher/flasher-toastr-laravel) | Toastr adapter for Laravel | | [flasher-toastr-symfony](https://github.com/php-flasher/flasher-toastr-symfony) | Toastr adapter for Symfony | | [flasher-noty-laravel](https://github.com/php-flasher/flasher-noty-laravel) | Noty adapter for Laravel | | [flasher-noty-symfony](https://github.com/php-flasher/flasher-noty-symfony) | Noty adapter for Symfony | | [flasher-notyf-laravel](https://github.com/php-flasher/flasher-notyf-laravel) | Notyf adapter for Laravel | | [flasher-notyf-symfony](https://github.com/php-flasher/flasher-notyf-symfony) | Notyf adapter for Symfony | | [flasher-sweetalert-laravel](https://github.com/php-flasher/flasher-sweetalert-laravel) | SweetAlert adapter for Laravel | | [flasher-sweetalert-symfony](https://github.com/php-flasher/flasher-sweetalert-symfony) | SweetAlert adapter for Symfony | > **Note:** Each adapter has its own repository. For detailed installation and usage instructions, please refer to the [Official Documentation](https://php-flasher.io). ## Official Documentation Comprehensive documentation for PHPFlasher is available at [https://php-flasher.io](https://php-flasher.io). Here you will find detailed guides, API references, and advanced usage examples to help you get the most out of PHPFlasher. ## Contributors and sponsors Join our team of contributors and make a lasting impact on our project! We are always looking for passionate individuals who want to contribute their skills and ideas. Whether you're a developer, designer, or simply have a great idea, we welcome your participation and collaboration. Shining stars of our community:
Younes ENNAJI 💻 📖 🚧 |
Salma Mourad 💵 |
Nashwan Abdullah 💵 |
Arvid de Jong 💵 |
Ash Allen 🎨 |
Tony Murray 💻 |
Stéphane P 📖 |
Lucas Maciel 🎨 |
Ahmed Gamal 💻 📖 |
Brooke. 📖 |
Made with ❤️ by Younes ENNAJI
All versions of php-flasher with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
ext-intl Version *
illuminate/contracts Version ^11.0
illuminate/routing Version ^11.0
illuminate/support Version ^11.0
laravel/octane Version ^2.3
livewire/livewire Version ^3.0
paragonie/random_compat Version ^2.0
psr/container Version ^1.1|^2.0
symfony/config Version ^7.0
symfony/console Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/http-kernel Version ^7.0
symfony/translation Version ^7.0
symfony/twig-bundle Version ^7.0
symfony/ux-twig-component Version ^2.19
ext-intl Version *
illuminate/contracts Version ^11.0
illuminate/routing Version ^11.0
illuminate/support Version ^11.0
laravel/octane Version ^2.3
livewire/livewire Version ^3.0
paragonie/random_compat Version ^2.0
psr/container Version ^1.1|^2.0
symfony/config Version ^7.0
symfony/console Version ^7.0
symfony/dependency-injection Version ^7.0
symfony/framework-bundle Version ^7.0
symfony/http-kernel Version ^7.0
symfony/translation Version ^7.0
symfony/twig-bundle Version ^7.0
symfony/ux-twig-component Version ^2.19
The package php-flasher/php-flasher contains the following files
Loading the files please wait ....