Download the PHP package amjadiqbal/alertify without Composer
On this page you can find all versions of the php package amjadiqbal/alertify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amjadiqbal/alertify
More information about amjadiqbal/alertify
Files in amjadiqbal/alertify
Package alertify
Short Description A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES , AVAILABLE FOR LARAVEL PROJECTS.
License MIT
Homepage https://github.com/amjadiqbal/alertify
Informations about the package alertify
Alertify for Laravel
A beautiful, responsive, customizable, accessible (WAI-ARIA) replacement for JavaScript's popup boxes, available for Laravel projects.
Introduction
Alertify is a Laravel package that integrates the AlertifyJS library to provide beautiful, customizable alert and notification boxes for your Laravel applications. It offers a simple and elegant way to replace JavaScript's default popup boxes with more stylish and functional alternatives.
Features
- Beautiful, responsive alert dialogs
- Toast notifications
- Customizable themes and styles
- WAI-ARIA accessibility support
- Simple integration with Laravel
- Middleware support for automatic alerts
- Session-based alert management
Installation
Step 1: Install the package via Composer
Step 2: Register the Service Provider (Laravel 5.4 or below)
For Laravel 5.5 and above, the package will be auto-discovered. For older versions, add the service provider to your config/app.php file:
Step 3: Publish the assets
This will publish:
- Configuration file to
config/alertify.php - JavaScript assets to
public/alertify/ - Views to
resources/views/vendor/alertify/
Configuration
After publishing the configuration file, you can customize the default settings in config/alertify.php:
Usage
Basic Usage
Using with Controllers
Using the Middleware
You can use the included middleware to automatically display alerts based on session data. Add the middleware to your app/Http/Kernel.php file:
Then, you can flash alert data to the session:
Including in Blade Templates
Make sure to include the Alertify scripts in your Blade templates:
Available Alert Types
successerrorwarninginfoquestion
Customization
You can customize the appearance and behavior of alerts by modifying the configuration or passing custom options when calling the alert() function.
Support
If you encounter any issues or have questions, please feel free to create an issue on the GitHub repository.
License
The Alertify package is open-sourced software licensed under the MIT license.
Credits
Author
Amjad Iqbal — amjad.com.pk · GitHub
All versions of alertify with dependencies
illuminate/support Version ~5.4.0|~5.8.0|~5.9.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/session Version ~5.4.0|~5.8.0|~5.9.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0