You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Locally installed you can run it with `vendor/bin/php-watcher`.
57
58
58
-
Under the hood, to watch filesystem changes, PHP-watcher uses JavaScript package [chokidar](https://github.com/paulmillr/chokidar).
59
-
At first run it will check and install it if required.
60
-
61
59
## Usage
62
60
63
61
All the examples assume you've installed the package globally. If you opted for the local installation prepend `vendor/bin/` everywhere where `php-watcher` is mentioned.
@@ -236,9 +234,28 @@ script crashes PHP-watcher will notify you about that.
236
234
237
235

238
236
237
+
## Performance
238
+
239
+
The watcher can use different strategies to monitor your file system changes. Under the hood it
240
+
detects the environment and chooses the best suitable strategy.
241
+
242
+
### Fswatch (OSX only)
243
+
244
+
[FsWatch](https://github.com/emcrisostomo/fswatch) is a cross-platform (Linux,Mac,Windows) file change monitor that will automatically
245
+
use the platforms native functionality when possible. Under the hood the filesystem notifies us
246
+
when any changes occur. Currently, it [doesn't work correctly on Linux](https://github.com/emcrisostomo/fswatch/issues/247).
247
+
If your system is OSx and has fswatch installed, this strategy will be used.
248
+
249
+
**Has not been extensively tested.**
250
+
251
+
### Chokidar
252
+
253
+
[Chokidar](https://github.com/paulmillr/chokidar) is a JavaScript package for watching file and directory changes.
254
+
At first run the watcher will check if Node.js is available in the system. If it is, it will install chokidar into the project.
255
+
239
256
## Spinner
240
257
241
-
By default the watcher outputs a nice spinner which indicates that the process is running
258
+
By default, the watcher outputs a nice spinner which indicates that the process is running
242
259
and watching your files. But if your system doesn't support ansi coded the watcher
243
260
will try to detect it and disable the spinner. Or you can always disable the spinner
0 commit comments