PHP code example of sbkinfo / livereload

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

    

sbkinfo / livereload example snippets



use LiveReloadPHP\LiveReload;

LiveReload::initReload();



$config = array(
	'host' => 'localhost',
	'port' => '9060',
	'sleep' => '1', #seconds
	'folders' => array(
		'/test',
		'/recursive',
	)
);