PHP code example of weprovide / aviate
1. Go to this page and download the library: Download weprovide/aviate 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/ */
weprovide / aviate example snippets
namespace WeProvide\Aviate\CustomImplementation;
use WeProvide\Aviate\Aviate;
class Bridge extends Aviate {
// Required function for you to implement. This should return the directory that has the aviate.config.js
public function getProjectRoot(): string {
return '/your-directory';
}
// Used for convience / demonstration. This is not $types['js'][] = $this->getDevServerUrl('css-file.js');
return $types;
}
// In production we load an actual CSS file
$types['css'][] = 'css-file.css';
return $types;
}
}