Download the PHP package tsufeki/react-filesystem-monitor without Composer
On this page you can find all versions of the php package tsufeki/react-filesystem-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tsufeki/react-filesystem-monitor
More information about tsufeki/react-filesystem-monitor
Files in tsufeki/react-filesystem-monitor
Package react-filesystem-monitor
Short Description Asynchronous filesystem monitor based on React PHP
License MIT
Informations about the package react-filesystem-monitor
React Filesystem Monitor
Asynchronous filesystem monitor based on React PHP.
Currently these implementations are available:
INotifyProcessMonitor
based oninotifywait
command line utility, used on Linux.FsWatchProcessMonitor
based onfswatch
, used on OSX.
All implementations' constructors take two arguments: a path to watch (file or recursively watched directory) and optional array of event to watch for (defaults to all events).
Available events:
access
i.e. readattribute
- modification of permissions, timestamps etc.close
create
delete
modify
move_from
,move_to
- file move, fired with source and destination path respectively. Only those for paths inside watched dir are fired.open
These events pass as arguments: path which triggered it, boolean indicating whether the path is a directory, event name and monitor instance itself.
Additional events:
all
- fired for all events abovestart
- fired when watchers finished setting uperror
Please note that not all backends support all events. fswatch
won't emit
open
and close
events; also start
is fired immediately after process starts
instead of when setup is complete.
Example
All versions of react-filesystem-monitor with dependencies
evenement/evenement Version ^3.0 || ^2.0
react/event-loop Version ^1.0 || ^0.5 || ^0.4.3
react/child-process Version ^0.6 || ^0.5.2
react/stream Version ^1.0 || ^0.7
tsufeki/react-line-stream Version ^0.2.0