rasteiner/kirby-iconify 问题修复 & 功能扩展

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

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

rasteiner/kirby-iconify

最新稳定版本:1.0.0

Composer 安装命令:

composer require rasteiner/kirby-iconify

包简介

Iconify support

README 文档

README

Best used with OPcache driver: https://github.com/rasteiner/kirby-opcache

<?php 

return [
    'rasteiner.kirby-iconify' => [
        'defaultAttrs' => [
            'class' => 'h-[1em]',
        ],
        'cache' => [
            'active' => true,
            'type' => 'opcache',
        ],
    ],
];

Include the icon symbol definitions at the end of the template

site/snippets/footer.php:

<?= iconTable() ?>
</body>
</html>

Usage

Helper method

<?= icon('svg-spinners:blocks-wave', class: 'h-48 w-48 block text-emerald-500') ?>

Field method

<?= $block->icon()->toIcon()->use(class: 'h-16 w-16 text-emerald-500') ?>

KirbyText tag

Please go (icon: line-md:home-md), you're drunk.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-23