PHP code example of craftcms / vue-asset

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

    

craftcms / vue-asset example snippets


use craft\vue\Asset as VueAsset;

Craft::$app->view->registerAssetBundle(VueAsset::class);


namespace ns\prefix\assets;

use craft\vue\Asset as VueAsset;
use craft\web\AssetBundle;

class MyAsset extends AssetBundle
{
    public $depends = [
        VueAsset::class,
    ];
    
    // ...
}