Download the PHP package alizharb/flare without Composer

On this page you can find all versions of the php package alizharb/flare. 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 flare

Flare Logo # Flare ### Production-Ready Toast Notifications for Laravel Livewire **Elegant • Performant • Customizable** [![PHP Version](https://img.shields.io/badge/PHP-8.3%2B-777BB4?style=flat-square&logo=php&logoColor=white)](https://php.net) [![Laravel](https://img.shields.io/badge/Laravel-12.0%20%7C%2013.0%2B-FF2D20?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com) [![Livewire](https://img.shields.io/badge/Livewire-3.5%20%7C%204.0%2B-4E56A6?style=flat-square&logo=livewire&logoColor=white)](https://livewire.laravel.com) [![Tests](https://img.shields.io/github/actions/workflow/status/alizharb/flare/tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/alizharb/flare/actions) [![License](https://img.shields.io/badge/License-MIT-green.svg?style=flat-square)](LICENSE) [![Downloads](https://img.shields.io/packagist/dt/alizharb/flare?style=flat-square)](https://packagist.org/packages/alizharb/flare) [Features](#-features) • [Installation](#-installation) • [Quick Start](#-quick-start) • [Documentation](#-documentation) • [Themes](#-themes) • [Examples](#-examples)

🎯 Overview

Flare is a modern, feature-rich toast notification system built specifically for Laravel Livewire applications. With zero configuration required and three distinct visual themes, Flare provides beautiful user feedback out of the box while offering extensive customization for advanced use cases.

👉 Try the Live Playground


✨ Features

### 🎨 **Three Professional Themes** - **Classic** - Minimal, clean, fastest performance - **Modern** - Balanced design with subtle effects _(default)_ - **Vibrant** - Bold, colorful, attention-grabbing All themes include: - ✓ Light & dark mode support - ✓ Smooth animations - ✓ Responsive design - ✓ RTL/LTR layouts ### ⚡ **High Performance** - Alpine.js powered (minimal overhead) - Optimized CSS transitions - Smart caching & compilation - No jQuery dependency - Lightweight footprint (~15KB) ### 🔧 **Developer Experience** - **Zero Configuration** - Works out of the box - **Simple API** - Intuitive, clean methods - **Livewire Trait** - `use WithFlare` - **TypeScript Support** - Full type definitions - **IDE Autocomplete** - PHPDoc annotations ### 📍 **Flexible Positioning** - 6 position options (top/bottom × start/center/end) - Per-toast position override - RTL/LTR automatic adaptation - Responsive mobile behavior ### 🎭 **Advanced Features** - **Stacking System** - Configurable toast layering - **Auto-Dismiss** - Configurable duration - **Hover Pause** - Pause on mouse hover - **Keyboard Shortcuts** - Esc, Shift+Esc, Alt+D - **Progress Bar** - Visual countdown - **Queue Management** - Handle multiple toasts ### 🧪 **Production Ready** - ✓ Comprehensive test suite (12 tests, 22 assertions) - ✓ PHPStan Level 9 compliance - ✓ PSR-12 code style - ✓ CI/CD with GitHub Actions - ✓ Semantic versioning - ✓ Extensive documentation

📋 Requirements

Requirement Version
PHP 8.3+
Laravel 12.0+ / 13.0+
Livewire 3.5+ / 4.0+
Alpine.js 3.x / 4.x

🚀 Installation

Step 1: Install via Composer

Step 2: Publish Assets

IMPORTANT: Assets must be published for Flare to work.

Step 3: Add to Layout

That's it! 🎉 You're ready to use Flare.

Optional Configuration

⚡ Quick Start

Using the Facade

Perfect for controllers, services, and any PHP class:

Using the Livewire Trait

The easiest way in Livewire components:

Using JavaScript

For client-side notifications:


🎨 Themes

Flare includes three professionally designed themes. Choose the one that fits your application's aesthetic.

### Classic **Minimal & Professional** Solid backgrounds Single shadow No blur ⚡ Fastest ### Modern **Balanced & Contemporary** Subtle gradients Light blur (4px) 2 shadow layers ⚡ Fast _(default)_ ### Vibrant **Bold & Colorful** Strong gradients Glowing shadows Moderate blur (8px) ⚡ Good

All themes support light & dark modes automatically.


📚 Documentation

📖 Complete Documentation

Visit our comprehensive documentation:

🌐 Interactive Docs

Run the documentation website locally:

Visit http://localhost:8000 for interactive documentation.


💡 API Reference

Toast Variants

Livewire Trait Methods

JavaScript API


⚙️ Configuration

View Complete Configuration

Environment Variables


🎯 Examples

Form Validation

CRUD Operations

Persistent Notifications

See EXAMPLES.md for more real-world scenarios.


⌨️ Keyboard Shortcuts

Shortcut Action
Esc Dismiss most recent toast
Shift + Esc Dismiss all toasts
Alt + D Dismiss all toasts (alternative)

🧪 Testing

Flare includes a comprehensive test suite:

Test Results: ✅ 12 tests, 22 assertions, 100% passing


🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Development Setup


📝 Changelog

See CHANGELOG.md for all changes and version history.

Latest Release: v1.1.0


📄 License

Flare is open-source software licensed under the MIT License.


🙏 Credits

Built with ❤️ by Ali Harb

Special thanks to:


🌟 Support

If you find Flare useful, please consider:


**[⬆ Back to Top](#flare)** Made with ❤️ for the Laravel community

All versions of flare with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0 || ^13.0
livewire/livewire Version ^3.5 || ^4.0
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 alizharb/flare contains the following files

Loading the files please wait ...