Download the PHP package jefyokta/php-file-watcher without Composer
On this page you can find all versions of the php package jefyokta/php-file-watcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jefyokta/php-file-watcher
More information about jefyokta/php-file-watcher
Files in jefyokta/php-file-watcher
Download jefyokta/php-file-watcher
More information about jefyokta/php-file-watcher
Files in jefyokta/php-file-watcher
Vendor jefyokta
Package php-file-watcher
Short Description A lightweight native file watcher for PHP using FFI
License MIT
Package php-file-watcher
Short Description A lightweight native file watcher for PHP using FFI
License MIT
Please rate this library. Is it a good library?
Informations about the package php-file-watcher
PHP File Watcher
Lightweight, cross-platform file watcher for Linux and macOS using native OS facilities (inotify on Linux, kqueue on macOS), exposed via PHP FFI.
Requirements
- Operating System: Linux or macOS
- PHP: FFI extension enabled (
--enable-ffiorffi.enable=1inphp.ini) - Composer: for installation and autoloading
Installation
Install the package via Composer:
Usage
onChange(callable $callback)— Register a callback to be invoked on each changed file.watch(string $directory)— Start watching the specified directory recursively.
Notes
- This package relies on PHP's FFI and a compiled native library (
libfilewatcher.soor.dylib), so ensure the native library is built for your platform. - Recursive watching of directories is supported.
- Suitable for lightweight monitoring in CLI PHP scripts or long-running daemons.
Build Native Library
If you want to build the native library yourself:
This script detects your OS and compiles the appropriate C source code into the shared library.
License
MIT License
All versions of php-file-watcher with dependencies
PHP Build Version
Package Version
No informations.
The package jefyokta/php-file-watcher contains the following files
Loading the files please wait ...