koala-framework/file-watcher
最新稳定版本:v1.0.1
Composer 安装命令:
composer require koala-framework/file-watcher
包简介
Library for watching for file system changes
README 文档
README
Php library for watching for file system changes.
Supports different backends for best cross platform usage.
Backends
- watchmedo (Cross platform pything shell utility)
- fswatch (Cross-platform file change monitor with multiple backends)
- inotifywait (Linux shell utility)
- inotify (Php PECL extension)
- Polling fallback (Slow)
Requirements
- Php 5.3+
Installation
Install using composer:
composer require koala-framework/file-watcher
Example Usage
$watcher = Kwf\FileWatcher\Watcher::create('.');
$watcher->addListener(Kwf\FileWatcher\Events::MODIFY, function($e) {
var_dump($e->filename);
});
$watcher->start();
统计信息
- 总下载量: 39.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-03-13