Download the PHP package stikmanw/file-event-watcher without Composer
On this page you can find all versions of the php package stikmanw/file-event-watcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stikmanw/file-event-watcher
More information about stikmanw/file-event-watcher
Files in stikmanw/file-event-watcher
Package file-event-watcher
Short Description File system watcher allowing for observeable handlers when a directory changes or content of the directory changes.
License MIT
Informations about the package file-event-watcher
Watcher
File system watcher allowing for observeable handlers when a directory changes or content of the directory changes.
Requirements
- PHP 5.4 >=
- Linux Files System / Mac OSX tested
- Windows (untested)
Description
You used the file FileWatcher like you would use typical event listener. The main advantage to this class is it does not require installing any additional libraries and can simply be installed via composer and used immidiately. You can attach multiple listeners to the 3 main events:
- CREATE - File has been created
- MODIFIED - File has been changed (currently uses a md5 hash to identify change)
- DELETE - File has been deleted since last check
Example
Attach to create events
Set the pulling interval
Custom pattern match against file system for monitoring configuration data
License
MIT