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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-flasher

Help Palestine

PHPFlasher Logo

Author Badge Source Code Badge GitHub Release Badge License Badge Packagist Downloads Badge GitHub Stars Badge Supported PHP Version Badge

# PHPFlasher: Beautiful Notifications Made Simple ## πŸš€ See It In Action That's it! PHPFlasher will display an elegant success notification to your user. No JavaScript to write, no frontend setup needed. ## πŸ”„ Compatibility | Requirements | Version | |--------------|---------| | PHP | β‰₯ 8.2 | | Laravel | β‰₯ 11.0 | | Symfony | β‰₯ 7.0 | ## πŸ“‘ Table of Contents - [Introduction](#-introduction) - [Features](#-key-features) - [Installation](#-installation) - [Usage Examples](#-usage-examples) - [Themes](#-themes) - [Adapters](#-adapters) - [Advanced Configuration](#-advanced-configuration) - [Adapter Documentation Example](#-adapter-documentation-example) - [Community & Support](#-community--support) - [Contributors](#-contributors-and-sponsors) - [License](#-license) ## 🌟 Introduction PHPFlasher is a powerful, framework-agnostic library that makes it simple to add beautiful flash messages to your web applications. It provides a consistent API for displaying notifications across your PHP applications, whether you're using Laravel, Symfony, or any other PHP framework. Flash messages are short-lived notifications that appear after a user performs an action, such as submitting a form. PHPFlasher helps you create these notifications with minimal effort while ensuring they look great and behave consistently. ## ✨ Key Features - **Zero JavaScript Required**: Write only PHP code - frontend functionality is handled automatically - **Framework Support**: First-class Laravel and Symfony integration - **Beautiful Themes**: Multiple built-in themes ready to use out of the box - **Multiple Notification Types**: Success, error, warning, and info notifications - **Highly Customizable**: Positions, timeouts, animations, and more - **Third-Party Adapters**: Integration with popular libraries like Toastr, SweetAlert, and more - **API Response Support**: Works with AJAX and API responses - **TypeScript Support**: Full TypeScript definitions for frontend customization - **Lightweight**: Minimal performance impact ## πŸ“¦ Installation ### For Laravel Projects PHPFlasher automatically injects the necessary JavaScript and CSS assets into your Blade templates. No additional setup required! ### For Symfony Projects PHPFlasher automatically injects the necessary JavaScript and CSS assets into your Twig templates. ## πŸ“š Usage Examples ### Basic Notifications ### With Custom Titles ### With Custom Options ### In Controllers ### Specific Use Cases ## 🎨 Themes PHPFlasher comes with beautiful built-in themes ready to use immediately: ### Default Theme (Flasher) The default theme provides clean, elegant notifications that work well in any application: ### Other Built-In Themes PHPFlasher includes multiple themes to match your application's design: ### Theme Configuration You can configure theme defaults in your configuration file: ## 🧩 Adapters Beyond PHPFlasher's built-in themes, you can use third-party notification libraries: ### Available Adapters #### Toastr #### SweetAlert #### Noty #### Notyf ## βš™οΈ Advanced Configuration ### Laravel Configuration Publish and customize the configuration: This creates `config/flasher.php` where you can configure: ### Symfony Configuration Create or edit `config/packages/flasher.yaml`: ### Notification Options Common options you can customize: ## πŸ“˜ Adapter Documentation Example Here's a detailed example of using the Toastr adapter with PHPFlasher: ### Installation For Laravel: For Symfony: ### Usage #### Basic Usage #### With Options #### Available Methods #### Toastr Specific Options | Option | Type | Default | Description | |------------------|---------|----------------|--------------------------------------------| | closeButton | Boolean | false | Display a close button | | closeClass | String | 'toast-close-button' | CSS class for close button | | newestOnTop | Boolean | true | Add notifications to the top of the stack | | progressBar | Boolean | true | Display progress bar | | positionClass | String | 'toast-top-right' | Position of the notification | | preventDuplicates | Boolean | false | Prevent duplicates | | showDuration | Number | 300 | Show animation duration in ms | | hideDuration | Number | 1000 | Hide animation duration in ms | | timeOut | Number | 5000 | Auto-close duration (0 = disable) | | extendedTimeOut | Number | 1000 | Duration after hover | | showEasing | String | 'swing' | Show animation easing | | hideEasing | String | 'linear' | Hide animation easing | | showMethod | String | 'fadeIn' | Show animation method | | hideMethod | String | 'fadeOut' | Hide animation method | ### Advanced Configuration #### Laravel Configuration Publish the configuration file: #### Symfony Configuration Edit your `config/packages/flasher.yaml`: ## Learn More For additional information, see the [PHPFlasher documentation](https://php-flasher.io). ## πŸ‘₯ Community & Support ### Getting Help - **Documentation**: Visit [https://php-flasher.io](https://php-flasher.io) - **GitHub Issues**: [Report bugs or request features](https://github.com/php-flasher/php-flasher/issues) - **Stack Overflow**: Ask questions with the `php-flasher` tag ### Common Use Cases - Form submission feedback - AJAX request notifications - Authentication messages - Error reporting - Success confirmations - System alerts ## 🌟 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
Younes ENNAJI

πŸ’» πŸ“– 🚧
Salma Mourad
Salma Mourad

πŸ’΅
Nashwan Abdullah
Nashwan Abdullah

πŸ’΅
Arvid de Jong
Arvid de Jong

πŸ’΅
Ash Allen
Ash Allen

🎨
Tony Murray
Tony Murray

πŸ’»
StΓ©phane P
StΓ©phane P

πŸ“–
Lucas Maciel
Lucas Maciel

🎨
Ahmed Gamal
Ahmed Gamal

πŸ’» πŸ“–
Brooke.
Brooke.

πŸ“–
## πŸ“¬ Contact PHPFlasher is being actively developed by yoeunes. You can reach out with questions, bug reports, or feature requests on any of the following: - [Github Issues](https://github.com/php-flasher/php-flasher/issues) - [Github](https://github.com/yoeunes) - [Twitter](https://twitter.com/yoeunes) - [Linkedin](https://www.linkedin.com/in/younes--ennaji/) - [Email me directly](mailto:[email protected]) ## πŸ“ License PHPFlasher is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

Made with ❀️ by Younes ENNAJI

⭐ Star if you found this useful ⭐


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|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package php-flasher/php-flasher contains the following files

Loading the files please wait ....