PHP code example of biffbangpow / silverstripe-assetshash

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

    

biffbangpow / silverstripe-assetshash example snippets


Requirements::set_backend(BBP_Backend::create());
Requirements::css('build/bundle.css', 'screen', ['addhash' => true]);
Requirements::javascript('build/main.bundle.js', ['type' => false, 'addhash' => true]);