The inotify extension allows to use inotify functions in a PHP script. WWW: https://pecl.php.net/package/inotify