PHPackages                             tufanbarisyildirim/react-inotify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tufanbarisyildirim/react-inotify

ActiveLibrary

tufanbarisyildirim/react-inotify
================================

Inotify bindings for ReactPHP (forked from mkraemer/react-inotify)

v1.0.0(12y ago)041MITPHPPHP &gt;=5.3.0

Since May 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/tufanbarisyildirim/react-inotify)[ Packagist](https://packagist.org/packages/tufanbarisyildirim/react-inotify)[ RSS](/packages/tufanbarisyildirim-react-inotify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

React-Inotify
=============

[](#react-inotify)

Basic inotify bindings for [React PHP](https://github.com/reactphp).

\##Install This library requires PHP5.3 and the [inotify PECL extension](http://pecl.php.net/package/inotify). The best way to install this library is through [composer](http://getcomposer.org):

```
{
    "require": {
        "tufanbarisyildirim/react-inotify": "dev-master"
    }
}
```

Usage
-----

[](#usage)

This library provides the Inotify class which takes an event loop and optionally the timer interval in which the inotify events should be checked as constructor arguments. After initializing the class, you can use the add() method to add paths to the list of watched paths. Use the [inotify bitmasks](http://www.php.net/manual/en/inotify.constants.php) to define to which filesystem operations to listen.

```
