aeyoll / bootstrap-icons
Utility to get the markup of Bootstrap icons (https://icons.getbootstrap.com/)
0.1.1
2021-03-11 14:07 UTC
Requires
- twbs/icons: *
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-14 03:00:39 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" ...