NoccyLabs

NoccyLabs develops open source libraries and software. With many projects ongoing, this organization contains public content repositories, as well as software and components considered stable.

noccylabs/react-inotify (0.1.0.1)

Published 2026-01-09 14:51:40 +00:00 by noccy

Installation

{
	"repositories": [{
			"type": "composer",
			"url": ""
		}
	]
}
composer require noccylabs/react-inotify:0.1.0.1

About this package

Watch files and directories using inotify

Inotify library for ReactPHP

Installing

$ composer repo add noccylabs composer https://dev.noccylabs.info/api/packages/noccylabs/composer
$ composer require noccylabs/react-inotify

Usage

// Create instance; you can pass a poll interval and a custom event loop.
$inotify = new NoccyLabs\React\Inotify\Inotify(0.1);

// Listen for events
$in->on("event", function ($event) {
    var_dump($event);
});

// Add a watch
$in->addWatch(__DIR__."/config", IN_CREATE|IN_DELETE|IN_MODIFY);

Dependencies

Dependencies

ID Version
evenement/evenement ^3.0
ext-inotify *
php ^8.3
react/event-loop ^1.5
Details
Composer
2026-01-09 14:51:40 +00:00
1
Christopher Vagnetoft
GPL-2.0-or-later
11 KiB
Assets (1)
Versions (1) View all
0.1.0.1 2026-01-09