23 public static function liveReload(
int $port=35729):string{
25 return '<script>document.write(\'<script src="http://\' + (location.host || \'localhost\').split(\':\')[0] +
26 \':' . $port .
'/livereload.js?snipver=1"></\' + \'script>\')</script>';
38 \exec(
'livereload --version', $_, $exitCode);
39 return $exitCode == 1;
Class for debug in dev mode.
static liveReload(int $port=35729)
Http Request utilities, wrapper for accessing to $_GET, $_POST and php://input.