PHP code example of paulbunyannet / autoversion
1. Go to this page and download the library: Download paulbunyannet/autoversion 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/ */
paulbunyannet / autoversion example snippets
// Auto-load composer packages
use Pbc\AutoVersion\AutoVersion;
ot
$auto = new AutoVersion($_SERVER['DOCUMENT_ROOT']);
// $pathToAsset is relative to the document root configured above,
$auto->file($pathToAsset);
<link rel="stylesheet" href="<?=$auto->file('/css/main.css')