Utility to monitor file system changes

v0.1.1 2016-02-06 01:54 UTC

This package is auto-updated.

Last update: 2024-05-22 07:54:21 UTC


A simple binding for ReactPHP event loops to watch files.

Currently only file poling and inotifywait in implemented, but is designed with stubs for other methods.

If possible, install inotifywait on your system, in Debian it's in the inotify-tools package. It is much more efficient than the file poll method.


$loop = \React\EventLoop\Factory::create();
$observer = new \Calcinai\Rubberneck\Observer($loop);

    echo "Modified: $file_name\n";

    echo "Created: $file_name\n";

    echo "Deleted: $file_name\n";