php-flasher/flasher
Composer 安装命令:
composer require php-flasher/flasher
包简介
The foundational PHP library for PHPFlasher, enabling the creation of framework-agnostic flash notifications. Ideal for building custom integrations or for use in PHP projects.
关键字:
README 文档
README
Framework-agnostic flash notifications library for PHP. Build custom integrations or use with any PHP project.
Requirements
- PHP >= 8.2
Installation
composer require php-flasher/flasher
Quick Start
// Success notification flash('Operation completed successfully!', 'success'); // Error notification flash('An error occurred.', 'error'); // With options flash('Profile updated!', 'success', [ 'timeout' => 5000, 'position' => 'top-right', ]); // With translation flash('Welcome back!', 'info', [ 'translate' => true, 'locale' => 'en', ]);
Key Features
- Framework Agnostic: Works with Laravel, Symfony, or any PHP project
- Plugin System: Extensible architecture for adding custom adapters
- Stamp Pattern: Flexible metadata system for notifications
- Storage Management: Multiple storage backends (session, array, etc.)
- Event System: Event-driven architecture for customization
- Response Handling: HTML and JSON response formats
Documentation
Complete documentation: php-flasher.io
License
统计信息
- 总下载量: 4.68M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 65
- 点击次数: 20
- 依赖项目数: 17
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-06