PHP code example of jefyokta / php-file-watcher
1. Go to this page and download the library: Download jefyokta/php-file-watcher 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/ */
jefyokta / php-file-watcher example snippets
use Jefyokta\PhpFileWatcher\Watcher;
Watcher::onChange(function(string $file) {
echo "File Changed: $file\n";
})->watch(__DIR__);
bash
composer