PHP code example of carono / yii2-bower-asset

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

    

carono / yii2-bower-asset example snippets





namespace app\assets;

use carono\yii2bower\Asset;

class BowerAsset extends Asset
{
    public $packages = [
        'jquery.inputmask', // Указываем имя пакета, скрипты подключаются автоматически
        'fontawesome' => [
            'sourcePath' => 'web-fonts-with-css', // Указываем папку внутри пакета
            'css/fontawesome-all.css' // Подключаем стиль вручную
        ],
    ];
}