PHP code example of iutbay / yii2-fontawesome

1. Go to this page and download the library: Download iutbay/yii2-fontawesome 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/ */

    

iutbay / yii2-fontawesome example snippets


\iutbay\yii2-fontawesome\FontAwesomeAsset::register($this);

public $depends = [
    'iutbay\yii2fontawesome\FontAwesomeAsset',
];

use iutbay\yii2fontawesome\FontAwesome as FA;

// home icon : <i class="fa fa-home"></i>
echo FA::icon('home');

// 2x home icon : <i class="fa fa-home fa-2x"></i>
echo FA::icon('home 2x');

// fixed width home icon : <i class="fa fa-home fa-fw"></i>
echo FA::icon('home fw');

php composer.phar