PHP code example of jext / yii2-fahelper
1. Go to this page and download the library: Download jext/yii2-fahelper 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/ */
jext / yii2-fahelper example snippets
use jext\fahelper\FontAwesomeAsset;
use jext\fahelper\JFA;
FontAwesomeAsset::register($this);
$icon = JFA::icon('camera');
//or
$icon = JFA::i('camera')->size('2x')->rotate('90');
echo $icon;
//or
echo $icon->render();
//use stack
echo $icon->stackOn('ban');
//... some other codes