定制 fahemdev/extra-icons 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

fahemdev/extra-icons

Composer 安装命令:

composer require fahemdev/extra-icons

包简介

A plugin to add extra icon packages to Filament.

README 文档

README

Latest Stable Version Total Downloads

A comprehensive Filament plugin that adds multiple icon packages to enhance your Laravel Filament applications.

fahemdev-extra-icons

Features

  • Support for multiple popular icon libraries:

    • Bootstrap Icons
    • Feather Icons
    • Ionicons
    • Tabler Icons
    • Octicons
    • Font Awesome (Brands, Regular, Solid)
    • Ant Design Icons
    • Huge Icons
    • (More icon libraries in the future)
  • Easy configuration and integration with Filament

  • Customizable icon prefixes, fallbacks, and attributes

Requirements

  • PHP 8.1+
  • Laravel 10.x or 11.x
  • Filament 3.x
  • Blade Icons

Installation

Install the package via Composer:

composer require fahemdev/extra-icons

Configuration

Publish the configuration file (optional):

php artisan vendor:publish --tag="extra-icons-config"

This will create a config/extra-icons.php file where you can customize icon settings.

Publishing Icon Resources

Publish the icon resources (optional):

php artisan extra-icons:publish

This will create icon folders in the resources folder extra-icons/resources/icon-package-name file where you can find icons.

Usage in Filament

In your Filament resources, forms, or actions, you can now use icons from various libraries:

// Bootstrap Icons (prefix: 'bootstrap')
->icon('bootstrap-star')
->icon('bootstrap-activity')

// Feather Icons (prefix: 'feather')
->icon('feather-star')
->icon('feather-activity')

// Ionicons (prefix: 'ion')
->icon('ion-star')
->icon('ion-activity')

// Tabler Icons (prefix: 'tabler')
->icon('tabler-star')
->icon('tabler-users')

// Octicons (prefix: 'octicon')
->icon('octicon-star')
->icon('octicon-person')

// Font Awesome Brands (prefix: 'fab')
->icon('fab-github')
->icon('fab-twitter')

// Font Awesome Regular (prefix: 'far')
->icon('far-star')
->icon('far-user')

// Font Awesome Solid (prefix: 'fas')
->icon('fas-star')
->icon('fas-user')

// Ant Design Icons (prefix: 'ant')
->icon('ant-star')
->icon('ant-user')

// Huge Icons (prefix: 'huge')
->icon('huge-star')
->icon('huge-user')

Customization

You can modify the config/extra-icons.php file to:

  • Change icon prefixes
  • Set fallback icons
  • Add custom CSS classes
  • Define default icon attributes

Example configuration:

'bootstrapicons' => [
    'prefix' => 'bootstrap',
    'fallback' => 'default-icon',
    'class' => 'text-primary',
    'attributes' => [
        'width' => 24,
        'height' => 24,
    ],
],

Contributing

We welcome contributions to the Extra Icons package! Here's how you can help:

  1. Fork the Repository

    • Click the "Fork" button at the top right of the repository page
    • Clone your forked repository to your local machine:
      git clone https://github.com/your-username/extra-icons.git
      cd extra-icons
  2. Create a Branch

    git checkout -b feature/your-feature-name
  3. Make Your Changes

    • Implement your feature or bug fix
    • Ensure your code follows the project's coding standards
    • Add tests if applicable
  4. Commit and Push

    git add .
    git commit -m "Description of your changes"
    git push origin feature/your-feature-name
  5. Create a Pull Request

    • Open a pull request from your fork to the main repository
    • Important: Please notify the maintainer (FahemDev) about your contribution
    • Provide a clear description of your changes and their purpose

License

This package is open-sourced software licensed under the MIT license.

Support

If you encounter any issues or have questions, please open an issue on GitHub.

About the Author

Created by FahemDev

fahemdev/extra-icons 适用场景与选型建议

fahemdev/extra-icons 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 12 月 26 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 fahemdev/extra-icons 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-26