Initial commit

This commit is contained in:
2025-11-10 13:36:25 +01:00
commit 904b426a00
8 changed files with 597 additions and 0 deletions

13
examples/example.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
require_once __DIR__."/../vendor/autoload.php";
$in = new NoccyLabs\React\Inotify\Inotify();
$in->on("event", function ($event) {
var_dump($event);
});
$in->addWatch(__DIR__, IN_CREATE|IN_DELETE);
echo "Create and delete a file in the current directory and observe the output.\n";