PHPackages                             mkraemer/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mkraemer/react-inotify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mkraemer/react-inotify
======================

Inotify bindings for ReactPHP

v1.1.0(11y ago)5016.3k14[1 PRs](https://github.com/mkraemer/react-inotify/pulls)1MITPHPPHP &gt;=5.3.0

Since May 27Pushed 6y ago4 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (3)Used By (1)

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": {
        "mkraemer/react-inotify": "1.1.0"
    }
}
```

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.

```
