Download the PHP package tourze/workerman-file-monitor without Composer
On this page you can find all versions of the php package tourze/workerman-file-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package workerman-file-monitor
Workerman File Monitor
中文
A file monitoring service for Workerman projects, extracted from webman framework.
Features
- Monitor file changes in specified directories
- Support multiple file extensions
- Auto reload when files are modified
- Memory usage monitoring
- PSR-3 logger support
- Cross-platform support (Linux/Unix/Windows)
Installation
Quick Start
Dependencies
- PHP >= 8.1
- ext-posix
- psr/log ^3|^2|^1
- workerman/workerman ^5.1
Configuration
monitor_dir: Directory or array of directories to monitormonitor_extensions: Array of file extensions to monitor (e.g., ['php', 'js'])memory_limit: Memory limit for worker processes (default: 80% of php.ini memory_limit)logger: PSR-3 compatible logger instance
Advanced Usage
Monitoring Multiple Directories
Using Custom Memory Limits
The memory_limit parameter accepts values in the format of '512M', '1G', etc. If not specified, it uses 80% of the value in php.ini.
Working with Loggers
The monitor works with any PSR-3 compatible logger:
Notes
- File monitoring is disabled in daemon mode
- Requires
exec()function to be enabled in PHP - Memory monitoring is only available on Linux/Unix systems
- Minimum memory limit is 30MB
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of workerman-file-monitor with dependencies
PHP Build Version
Package Version
The package tourze/workerman-file-monitor contains the following files
Loading the files please wait ...