filafly/filament-carbon-icons
Composer 安装命令:
composer require filafly/filament-carbon-icons
包简介
Carbon icon pack for Filament Icons
README 文档
README
Filament Carbon Icons
A Carbon icon set implementation for Filament, providing the full set of Carbon icons integrated with Filament's interface.
Installation
You can install the package via composer:
composer require filafly/filament-carbon-icons
After the package is installed, you must register the plugin in your Filament Panel provider:
use Filafly\Icons\Carbon\CarbonIcons; public function panel(Panel $panel): Panel { return $panel ->plugin(CarbonIcons::make()); }
Icon Styles
Carbon icons comes in a single style although there are some instances of an icon having filled or outline variants. There are no explicit style sets so this package doesn't support any global style selection.
Override Specific Icons
You can override specific icons or aliases using the following methods:
Override Icon Aliases
Use overrideAlias() to change which icon is used for specific Filament component aliases:
CarbonIcons::make() ->overrideAlias(PanelsIconAlias::SIDEBAR_EXPAND_BUTTON, Carbon::ChevronRight) ->overrideAlias(TablesIconAlias::FILTER_INDICATOR, Carbon::Filter);
Or use overrideAliases() to override multiple aliases at once by passing an array:
CarbonIcons::make() ->overrideAliases([ PanelsIconAlias::SIDEBAR_EXPAND_BUTTON => Carbon::ChevronRight, TablesIconAlias::FILTER_INDICATOR => Carbon::Filter, ActionsIconAlias::CREATE_ACTION_BUTTON => Carbon::AddAlt, ]);
Override Individual Icons
Use overrideIcon() to replace specific Carbon icons with different ones:
CarbonIcons::make() ->overrideIcon(Carbon::Search, Carbon::SearchAdvanced) ->overrideIcon(Carbon::Add, Carbon::AddAlt);
Or use overrideIcons() to override multiple icons at once by passing an array:
CarbonIcons::make() ->overrideIcons([ Carbon::Search->value => Carbon::SearchAdvanced, Carbon::Add->value => Carbon::AddAlt, Carbon::Edit->value => Carbon::EditOff, ]);
PHP arrays do not support enums as keys so
->valueis necessary if you want to reference the enum
These methods are particularly useful since Carbon icons come in a single style, allowing you to customize the icon set to better fit your application's needs.
License
The MIT License (MIT). Please see License for more information.
filafly/filament-carbon-icons 适用场景与选型建议
filafly/filament-carbon-icons 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 354 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 07 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「icons」 「replace」 「carbon」 「swap」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 filafly/filament-carbon-icons 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 filafly/filament-carbon-icons 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 filafly/filament-carbon-icons 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Replace image URLs found in HTML
Provides a Composer script to project skeleton hydration by placeholders replacements.
A simple library of SVG page type icons for enhancing your SilverStripe CMS interface.
A Filament plugin that integrates tabler icons, allowing you to use them seamlessly across Filament forms, tables, actions, and more.
Adds PHP's preg_replace function as a Twig filter.
Font Awesome icon pack for Filament Icons
统计信息
- 总下载量: 354
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-25