1. Go to this page and download the library: Download dakujem/peat 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/ */
$bridgeService = new ViteBridge(
manifestFile: ROOT_DIR . '/public/my-js-widget/manifest.json',
cacheFile: TEMP_DIR . '/vite.php', // can be any writable file
assetPathPrefix: '/my-js-widget', // all asset paths from the manifest will be prefixed by this value
devServerUrl: 'http://localhost:5173',
);