PHPackages                             aizuyan/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. [File &amp; Storage](/categories/file-storage)
4. /
5. aizuyan/inotify

ActiveLibrary[File &amp; Storage](/categories/file-storage)

aizuyan/inotify
===============

recursive monitor file and directory based on inotify-tools

v3.0.0(9y ago)2422MITPHPPHP &gt;=5.4

Since Oct 13Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (9)Used By (0)

inotify
=======

[](#inotify)

文件、文件夹递归监控变动

#### 使用例子

[](#使用例子)

```
$obj = new Aizuyan\Inotify\Inotify();

$obj->addExclude([
    "/swp$/",
    "/swpx$/",
    "/~$/",
    "/\d$/",
    "/swx$/"
])->setCallback(function ($item){
    echo $item["event"] . " 文件 " . $item["file"] . "\n";
})->addPaths("/datas/git/")->start();
```

运行之后修改保存文件的时候会显示下面的内容：

```
CREATE 文件 /datas/git/inotify/README.md
MODIFY 文件 /datas/git/inotify/README.md
MOVED_TO 文件 /datas/git/aizuyan/pinyin-1/README.md
DELETE 文件 /datas/git/aizuyan/pinyin-1/LICENSE
。。。。。。

```

#### 安装

[](#安装)

要使用这个功能，需要在机器上安装inotify-tools，只能在linux\\unix上使用

```
yum install inotify-tools
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

3497d ago

Major Versions

v1.1.2 → v2.0.02016-10-13

v2.1.0 → v3.0.02016-10-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc77ab790517afad15a85f5ab55396fb4f6a91eaabaf33fd5126f72e3f8562dc?d=identicon)[aizuyan](/maintainers/aizuyan)

---

Top Contributors

[![aizuyan](https://avatars.githubusercontent.com/u/6612863?v=4)](https://github.com/aizuyan "aizuyan (2 commits)")[![skylei](https://avatars.githubusercontent.com/u/1855591?v=4)](https://github.com/skylei "skylei (1 commits)")

### Embed Badge

![Health badge](/badges/aizuyan-inotify/health.svg)

```
[![Health](https://phpackages.com/badges/aizuyan-inotify/health.svg)](https://phpackages.com/packages/aizuyan-inotify)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
