Wrapper for PHP inotify module
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
library/Djme
tests
.gitignore
README.markdown
phpunit.xml

README.markdown

php-inotify

A simple OO wrapper for PHP inotify module

Requirements

Example

<?php
$inotify = new Djme_Inotify();
$inotify->addWatch(__DIR__);
while (true) {
  foreach ($inotify->read() as $result) {
    echo 'Something happened to \''. __DIR__. '/'. $result->getName(). "'.\n";
  }
}