PHP code example of fortrabbit / craft-asset-bundler

1. Go to this page and download the library: Download fortrabbit/craft-asset-bundler 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/ */

    

fortrabbit / craft-asset-bundler example snippets


php craft asset-bundler/publish

"scripts": {    
    "post-install-cmd": [
      "@php craft install/plugin asset-bundler",
      "@php craft asset-bundler/publish"
    ]
  }