PHP code example of antonioprimera / laravel-heroicons
1. Go to this page and download the library: Download antonioprimera/laravel-heroicons library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
antonioprimera / laravel-heroicons example snippets
$icon = new \AntonioPrimera\HeroIcons\HeroIcon('arrow-down');
$iconHtmlString = $icon->render();
use AntonioPrimera\HeroIcons\HeroIcon;
$icon = new HeroIcon('arrow-down');
$icon = new HeroIcon('Arrow Down');
$icon = new HeroIcon('ArrowDown');
use AntonioPrimera\HeroIcons\HeroIcon;
$icon = new HeroIcon('arrow-down', HeroIcon::FORMAT_OUTLINE);
$icon = new HeroIcon('arrow-down', HeroIcon::FORMAT_SOLID);
use AntonioPrimera\HeroIcons\HeroIcon;
$defaultOptions = HeroIcon::SVG_CURRENT_COLOR & HeroIcon::SVG_REMOVE_SIZE;