22/05
2018
LiveReload Package
, (*1)
Livereload package for php. , (*2)
Run this command in terminal from root folder your project:, (*3)
composer require sbkinfo/livereload
Run this command in terminal from root folder your project:, (*4)
wget https://raw.githubusercontent.com/silverreve23/livereload/master/livestart
Insert next code in your project main file., (*5)
use LiveReloadPHP\LiveReload; LiveReload::initReload();
Execute next command in terminal from root folder your project:, (*6)
livestart
Default path watcher / (root project). Example config:, (*7)
$config = array( 'host' => 'localhost', 'port' => '9060', 'sleep' => '1', #seconds 'folders' => array( '/test', '/recursive', ) );
Pass config to methods:, (*8)