aytackayin/filament-select-icon 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

aytackayin/filament-select-icon

Composer 安装命令:

composer require aytackayin/filament-select-icon

包简介

A custom Filament form component that provides a beautiful, grid-based icon picker with a built-in search functionality and custom tooltips.

README 文档

README

A custom Filament form component that provides a beautiful, grid-based icon picker with a built-in search functionality and custom tooltips.

SelectIcon Preview

Features

  • 🚀 Grid Layout: Displays icons in a clean, responsive grid.
  • 🔍 Searchable: Built-in search functionality to quickly find icons.
  • 🎨 Custom Tooltips: Modern, rounded, and shadowed tooltips that appear on hover.
  • 🌓 Dark Mode Support: Fully compatible with Filament's light and dark themes.
  • ⚙️ Configurable: Easily customize the list of available icons via a config file.
  • 📦 No External Dependencies: Self-contained CSS and Alpine.js logic.
  • Custom SVG Icons: Add, edit, and remove your own custom SVG icons directly from the picker modal (v1.0.8+).
  • 🗂 Modal-Based Picker: Uses Filament's native modal component with tabbed interface for library and custom icons.
  • 🔑 Clear Button: Quickly clear the selected icon with a dedicated clear button.
  • 🌍 Multi-Language: Ships with English and Turkish translations out of the box.

Installation

You can install the package via composer:

composer require aytackayin/filament-select-icon

Configuration

By default, the plugin automatically discovers all Outlined Heroicons provided by Filament. No configuration is required.

However, if you want to limit the icons or add custom ones, you can publish the config file:

php artisan vendor:publish --tag="filament-select-icon-config"

This is the contents of the published config file:

<?php

return [
    'icons' => [
        // 'Label' => 'heroicon-name',
        // If left empty, all Outlined Heroicons are discovered automatically.
    ],

    // Enable/disable custom SVG icon uploads from the picker modal.
    'enable_custom_icons' => true,

    // Storage path for custom icons (relative to storage_path(), or absolute).
    'custom_icons_path' => 'app/filament-select-icon/custom-icons.json',

    // Modal configuration.
    'modal' => [
        'width' => '4xl',
        'slide_over' => false,
    ],

    // Max SVG content size in bytes.
    'max_svg_size' => 20000,
];

Custom SVG Icons (v1.0.8+)

When enable_custom_icons is true, users can add their own SVG icons directly from the picker modal:

  1. Click the Add New tab in the picker.
  2. Fill in a unique key, display label, and paste/upload the SVG markup.
  3. Custom icons are stored in storage/app/filament-select-icon/custom-icons.json.
  4. Custom icons can be edited or removed inline from the grid.

Usage

Simply use the SelectIcon component in your Filament form schema:

use AytacKayin\FilamentSelectIcon\Forms\Components\SelectIcon;

public function form(Form $form): Form
{
    return $form
        ->schema([
            SelectIcon::make('icon')
                ->label('Select an Icon'),
        ]);
}

Customization

Disable Custom Icons

// In config/select-icon.php
'enable_custom_icons' => false,

Or per-field:

SelectIcon::make('icon')
    ->customIcons(false),

Credits

Developed by Aytaç Kayın.

License

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

aytackayin/filament-select-icon 适用场景与选型建议

aytackayin/filament-select-icon 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 12 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-19