PHP code example of yiichina / yii2-icons
1. Go to this page and download the library: Download yiichina/yii2-icons 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/ */
yiichina / yii2-icons example snippets
use yiichina\icons\Icon;
<?= Icon::show('user', [
'type' => 'fas', // 图标分类
'tagName' => 'i', // 标签名,默认是 i
'start' => null, // 开始字符
'end' => ' ', // 结束字符
'class' => '' // 追加的 class
])