chrisreedio/filament-breakpoint-badge
Composer 安装命令:
composer require chrisreedio/filament-breakpoint-badge
包简介
Displays the current Tailwind breakpoint in the Filament header
README 文档
README
Breakpoint Badge is a lightweight extension for FilamentPHP that adds a real-time breakpoint badge to the header, streamlining the debugging process.
Installation
You can install the package via composer:
composer require chrisreedio/filament-breakpoint-badge
Usage
To use this plugin register it in your panel configuration:
use ChrisReedIO\BreakpointBadge\BreakpointBadgePlugin; $panel ->plugins([ BreakpointBadgePlugin::make(), ]);
Visibility
By default, the plugin displays the breakpoint badge in all non-production environments. You can further customize whether the badges should be shown.
use ChrisReedIO\BreakpointBadge\BreakpointBadgePlugin; $panel->plugins([ BreakpointBadgePlugin::make() ->visible(fn () => auth()->user()?->can('see_breakpoints')) ]);
Colors
You can overwrite the default colors if you want your own colors or need to add more. The ->color()method accepts any Filament's Color object or a closure that returns a color object.
use pxlrbt\FilamentEnvironmentBadge\EnvironmentBadgePlugin; use Filament\Support\Colors\Color; $panel->plugins([ BreakpointBadgePlugin::make() ->color(fn () => match (app()->environment()) { 'production' => null, 'staging' => Color::Orange, default => Color::Blue, }) ]);
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
Special thanks to Adam Weston for the help writing the plugin.
Also a big thanks to Dennis Koch for the inspiration and tips on generating screenshots. Check out his Filament Environment Indicator plugin on which this is based!
License
The MIT License (MIT). Please see License File for more information.
chrisreedio/filament-breakpoint-badge 适用场景与选型建议
chrisreedio/filament-breakpoint-badge 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 413 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 08 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「dev-tools」 「breakpoints」 「tailwind」 「filament」 「chrisreedio」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 chrisreedio/filament-breakpoint-badge 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chrisreedio/filament-breakpoint-badge 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 chrisreedio/filament-breakpoint-badge 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css. Requires Livewire and AlpineJS
Laravel dev-tools
Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css
Enable https on Laravel sail powered apps.
Symfony bundle for anonymizing database records using Doctrine attributes and Faker generators. Perfect for test data generation, GDPR compliance, and data masking in development environments.
Interactive Laravel project setup command with best practices, testing tools, and CI/CD workflows
统计信息
- 总下载量: 413
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-18