eightynine/filament-page-alerts
Composer 安装命令:
composer require eightynine/filament-page-alerts
包简介
Display more intrusive alerts in any filament page
README 文档
README
Display more aggressive alerts in any filament page
🛠️ Be Part of the Journey
Hi, I'm Eighty Nine. I created page alerts plugin to solve real problems I faced as a developer. Your sponsorship will allow me to dedicate more time to enhancing these tools and helping more people. Become a sponsor and join me in making a positive impact on the developer community.
Introduction
This package shows alerts in any page, not just the dashboard, currently the alerts appear on top of the page.
Installation
You can install the package via composer:
composer require eightynine/filament-page-alerts
You can publish the config file with:
php artisan vendor:publish --tag="filament-page-alerts-config"
This is the contents of the published config file:
use Filament\View\PanelsRenderHook; return [ /** * Render hook * * The render hook to use for the alerts */ "render-hook" => PanelsRenderHook::PAGE_START ];
Usage
Add the plugin to your panel service provider
public function panel(Panel $panel): Panel { return $panel //... //... ->plugin(FilamentPageAlertsPlugin::make()) ->spa(); }
You can use the PageAlert class to send alerts to your page!
return [ Actions\CreateAction::make(), Actions\Action::make('show notification') ->action(function () { PageAlert::make() ->title('Saved successfully') ->body('Yey.. Your changes have been saved: ' . now()) ->success() ->send(); PageAlert::make() ->title('Saved failure') ->body('Ooops, Your changes have not been saved! ') ->danger() ->send(); PageAlert::make() ->title('This requires your attention') ->body('Hey there, this is important') ->warning() ->url('https://www.google.com', 'Google') ->send(); PageAlert::make() ->title('You need to check this out') ->body('This looks like something worth your attention') ->info() ->send(); }), ];
Credits
License
The MIT License (MIT). Please see License File for more information.
eightynine/filament-page-alerts 适用场景与选型建议
eightynine/filament-page-alerts 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.46k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2024 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「eightynine」 「filament-page-alerts」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 eightynine/filament-page-alerts 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eightynine/filament-page-alerts 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 eightynine/filament-page-alerts 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Advanced widgets for your filament php application
Elegant reports in your filament application
Manage approval processes in your filament application
Elegant documentation system for your Filament application with search, navigation, and markdown support
Allow your users to periodically reset their passwords, to enforce security.
Alfabank REST API integration
统计信息
- 总下载量: 3.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-21
