whatwedo/twig-bootstrap-icons 问题修复 & 功能扩展

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

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

whatwedo/twig-bootstrap-icons

最新稳定版本:v1.1.2

Composer 安装命令:

composer require whatwedo/twig-bootstrap-icons

包简介

README 文档

README

Twig Integration for Bootstrap Icons. This bundle is inspred by marcw/twig-heroicons.

Installation

composer require whatwedo/twig-bootstrap-icons

Twig Integration

Just register the extension

$twig->addExtension(new BootstrapIconsExtensions());

Symfony Integration

// bundles.php
return [
    whatwedo\TwigBootstrapIcons\whatwedoTwigBootstrapIconsBundle::class => ['all' => true],
];

Usage

Outputs the SVG

{{ bootstrap_icon('alarm') }}

you can pass an array as second argument to add attributes to the <svg>-tag:

{{ bootstrap_icon('alarm', {
    class: 'text-gray-500 mr-3 h-6 w-6'
    alt: 'alarm clock'
}) }}

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 10
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-10