aeyoll/bootstrap-icons

获取 Bootstrap 图标标记的工具(https://icons.bootstrap.ac.cn/)

0.1.1 2021-03-11 14:07 UTC

This package is auto-updated.

Last update: 2024-09-14 02:28:01 UTC


README

获取 Bootstrap 图标标记的工具(https://icons.bootstrap.ac.cn/

安装

composer require aeyoll/bootstrap-icons

用法

获取图标标记

use Aeyoll\BootstrapIcons\BootstrapIcons;

$bi = new BootstrapIcons();
$alertIcon = $bi->getIcon('alarm');

显示图标标记

use Aeyoll\BootstrapIcons\BootstrapIcons;

$bi = new BootstrapIcons();
$bi->displayIcon('alarm'); // Echo "<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-alarm" ...