PHP code example of highliuk / vite

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

    

highliuk / vite example snippets


use HighLiuk\Vite\Vite;
use HighLiuk\Vite\Manifest;

$manifest = new Manifest('/path/to/dist/', '/url/to/dist/');
$vite = new Vite($manifest);

// print the tags
echo $vite->tags();

$vite = new Vite($manifest, 'http://localhost:port/');