aeyoll/bootstrap-icons

Utility to get the markup of Bootstrap icons (https://icons.getbootstrap.com/)

0.1.1 2021-03-11 14:07 UTC

This package is auto-updated.

Last update: 2024-11-14 02:51:58 UTC


README

Utility to get the markup of Bootstrap icons (https://icons.getbootstrap.com/)

Installation

composer require aeyoll/bootstrap-icons

Usage

Get an icon markup:

use Aeyoll\BootstrapIcons\BootstrapIcons;

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

Display an icon markup:

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" ...