定制 bimthebam/silverstripe-lucide-icons 二次开发

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

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

bimthebam/silverstripe-lucide-icons

最新稳定版本:1.0.0

Composer 安装命令:

composer require bimthebam/silverstripe-lucide-icons

包简介

Provides Lucide icons as an inline SVG template helper for Silverstripe CMS

README 文档

README

Provides Lucide icons as a template helper for Silverstripe CMS. Icons are rendered inline as SVG, with optional attribute customization.

Requirements

  • PHP ^8.1
  • Silverstripe Framework ^5 || ^6

Installation

composer require bimthebam/silverstripe-lucide-icons

Usage

Use the $LucideIcon template helper to render an icon by name:

$LucideIcon('arrow-right')

Custom SVG attributes

You can pass additional SVG attributes as extra arguments in key="value" format:

$LucideIcon('arrow-right', 'width="32"', 'height="32"', 'stroke="red"')

Appending to existing attributes

Prefix the value with ... to append to an existing attribute instead of replacing it:

$LucideIcon('arrow-right', 'class="...my-icon"')

This will append my-icon to the existing class attribute of the SVG element.

Icon overriding

Icons can be overridden via Silverstripe's theme system. Place a custom SVG file at the following path within your theme:

themes/<your-theme>/bimthebam/silverstripe-lucide-icons/icons/<icon-name>.svg

The themed version will take priority over the bundled icon.

Caching

Rendered icons are cached automatically. To clear the cache, append ?flush=1 to any URL or use the CLI:

  • Silverstripe 5: sake dev/build?flush=1
  • Silverstripe 6: sake flush

Bundled icon version

This module includes icons from Lucide v1.7.0.

License

This module is licensed under the BSD-3-Clause license.

The bundled Lucide icons are licensed under the ISC License. Some icons derived from the Feather project are licensed under the MIT License. See LICENSE_LUCIDE.md for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-04-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固