定制 aimanecouissi/module-hyva-tabler-icons 二次开发

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

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

aimanecouissi/module-hyva-tabler-icons

最新稳定版本:1.0.0

Composer 安装命令:

composer require aimanecouissi/module-hyva-tabler-icons

包简介

Add the Tabler Icons SVG icon set to Hyvä Themes

README 文档

README

Latest Stable Version Total Downloads Magento Version License PHP Version Require Hyvä Compatible

Integrates the Tabler Icons free SVG icon set into Hyvä Themes, exposing outline and filled styles as dedicated SvgIcons view models. Browse the included icons in the SVG directory or preview them at tabler.io/icons.

Note

This module only includes the free Tabler Icons set.

Installation

composer require aimanecouissi/module-hyva-tabler-icons
bin/magento module:enable AimaneCouissi_HyvaSvgIcons AimaneCouissi_HyvaTablerIcons
bin/magento setup:upgrade
bin/magento cache:flush

Usage

In Hyvä PHTML templates

Require the view models for the styles you need and call their helper methods to render icons:

<?php

use AimaneCouissi\HyvaTablerIcons\ViewModel\TablerIconsFilled;
use AimaneCouissi\HyvaTablerIcons\ViewModel\TablerIconsOutline;
use Hyva\Theme\Model\ViewModelRegistry;

/** @var ViewModelRegistry $viewModels */

$tablerIconsOutline = $viewModels->require(TablerIconsOutline::class);
$tablerIconsFilled = $viewModels->require(TablerIconsFilled::class);
?>
<?= $tablerIconsOutline->shoppingCartHtml('w-6 h-6', 24, 24, ['aria-label' => 'Cart']) ?>
<?= $tablerIconsFilled->starHtml('w-5 h-5 text-yellow-400', 20, 20, ['aria-hidden' => 'true']) ?>

Methods are generated from SVG filenames and fully documented via PHPDoc on each view model, so your IDE can autocomplete them.

In CMS content

The module registers two icon prefixes for Hyvä SvgIcons: tablericons-outline and tablericons-filled. Icons can be used directly in CMS pages, blocks, and widgets:

{{icon "tablericons-outline/shopping-cart" classes="inline-block w-6 h-6" width=24 height=24}}
{{icon "tablericons-filled/star" classes="inline-block w-5 h-5 text-yellow-400" width=20 height=20}}

Uninstall

bin/magento module:disable AimaneCouissi_HyvaTablerIcons
composer remove aimanecouissi/module-hyva-tabler-icons
bin/magento setup:upgrade
bin/magento cache:flush

Changelog

See CHANGELOG for all recent changes, including icon set version updates.

License

The Tabler Icons SVG icons are created by Tabler and licensed under MIT.

Warning

Individual brand icons may be subject to their own trademark and usage guidelines. Trademark usage is the responsibility of the end user. Please consult individual brand guidelines before displaying logos in commercial contexts.

This module's source code is separately licensed under MIT.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固