PHP code example of marabesi / phpwatch

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

    

marabesi / phpwatch example snippets

 php

print 'my PHP script';

matheus@marabesi /github/php-watch $ php my_script.php
my PHP script
 php

print 'my PHP script';

matheus@marabesi /github/php-watch $ php bin/watch.php watch my_script.php
Start watching : /github/php-watch/my_script.php