承接 guava/filament-icon-picker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

guava/filament-icon-picker

Composer 安装命令:

composer require guava/filament-icon-picker

包简介

A filament plugin that adds an icon picker field.

README 文档

README

Latest Version on Packagist Total Downloads

This plugin adds a new icon picker form field and a corresponding table column. You can use it to select from any blade-icons kit that you have installed. By default, heroicons are supported since it is shipped with Filament.

This can be useful for when you want to customize icons rendered on your frontend, if you want your users to be able to customize navigation icons, add small icons to their models for easy recognition and similar.

Version compatibility

Filament version Plugin version
2.x 1.x
3.x 2.x
4.x 3.x
5.x 4.x

Installation

You can install the package via composer:

composer require guava/filament-icon-picker"

Make sure to publish the package assets using:

php artisan filament:assets

For certain layouts, you might need to update the payloads.max_calls setting in your livewire.php config.

Finally, make sure you have a custom filament theme (read here how to create one) and add the following to your theme.css file:

This ensures that the CSS is properly built:

@source '../../../../vendor/guava/filament-icon-picker/resources/**/*';

For older filament versions, please check the branch of the respective version.

Usage

Usage in Schemas:

Add the icon picker to any form schema in your filament panel or livewire component that supports filament forms:

use Guava\IconPicker\Forms\Components\IconPicker;

IconPicker::make('icon');

Usage in Tables:

To display the stored icon in your filamen tables, use our IconColumn class:

// Make sure this is the correct import, not the filament one
use Guava\IconPicker\Tables\Columns\IconColumn;

$table
    ->columns([
        IconColumn::make('icon'),
    ])
    // ...
;

Usage on the frontend:

We store the full icon name in the database. This means to use the icon on the frontend, simply treat is as any other static icon.

For example, assuming we saved the icon on our $category model under $icon, you can render it in your blade view using:

<x-icon :name="$category->icon" />

More information on rendering the icon on the blade-icons github.

Customization

Search Results View

Out of the box, we provide three different search result views that you can choose from.

Grid View

This is the default view used. Icons will be shown in a grid with their name underneath the icon.

IconPicker::make('icon')
    ->gridSearchResults();
Screenshot 2025-08-19 at 14 12 10

List View

Icons will be rendered in a list together with the icon's name.

IconPicker::make('icon')
    ->listSearchResults();
Screenshot 2025-08-19 at 14 12 27

Icons View

Icons will be rendered in a small grid with only the icons visible, optionally configurable to show a tooltip with the icon name.

IconPicker::make('icon')
    ->iconsSearchResults()       // With tooltip
    ->iconsSearchResults(false); // Without tooltip
Screenshot 2025-08-19 at 14 12 48

Dropdown

By default, the icon picker will open a dropdown, where you can search and select the icon. (Very similar to a regular Select field in filament).

If you prefer, you can disable the dropdown and then the search and results will be rendered directly beneath the field.

IconPicker::make('icon')
    ->dropdown(false);

Limit sets

By default, all available icon sets in the system will be available in the icon picker.

If you want, you can limit the sets to only the sets you want, by providing an array of set names:

IconPicker::make('icon')
    ->sets(['heroicons']);

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.

guava/filament-icon-picker 适用场景与选型建议

guava/filament-icon-picker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 660.9k 次下载、GitHub Stars 达 162, 最近一次更新时间为 2022 年 10 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「Guava」 「filament-icon-picker」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 guava/filament-icon-picker 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 guava/filament-icon-picker 我们能提供哪些服务?
定制开发 / 二次开发

基于 guava/filament-icon-picker 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 660.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 162
  • 点击次数: 21
  • 依赖项目数: 20
  • 推荐数: 0

GitHub 信息

  • Stars: 162
  • Watchers: 3
  • Forks: 42
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-07