PHPackages                             iqomp/watcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. iqomp/watcher

ActiveComposer-plugin[CLI &amp; Console](/categories/cli)

iqomp/watcher
=============

A composer plugin to run cli script when it detect some file changes

1.1.3(2y ago)13.0kMITPHP

Since Dec 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/iqomp/watcher)[ Packagist](https://packagist.org/packages/iqomp/watcher)[ RSS](/packages/iqomp-watcher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

iqomp/watcher
=============

[](#iqompwatcher)

A composer plugin to run cli script when it detect some file changes on working directory. This plugin really help on developing some application with self server like [swoole](https://www.swoole.co.uk/) where you need to restart the server on every file update.

Installation
------------

[](#installation)

```
composer require iqomp/watcher --dev

```

Usage
-----

[](#usage)

This module add new composer command named `watch` that will watch for file changes on current directory recursively, and run the provided argument as a script.

```
composer watch "php index.php start" --ignore="runtime" --ignore="cache"
```

Above script will run `php index.php start` on the first run, and watch for file changes in current directory while ignoring directory `runtime` and `cache`relative to current directory. When file changes found, the previous script process get killed and new process is executed.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~301 days

Total

5

Last Release

778d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5726035?v=4)[Iqbal Fauzi](/maintainers/iqbalfn)[@iqbalfn](https://github.com/iqbalfn)

---

Top Contributors

[![iqbalfn](https://avatars.githubusercontent.com/u/5726035?v=4)](https://github.com/iqbalfn "iqbalfn (5 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/iqomp-watcher/health.svg)

```
[![Health](https://phpackages.com/badges/iqomp-watcher/health.svg)](https://phpackages.com/packages/iqomp-watcher)
```

###  Alternatives

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[grasmash/yaml-cli

A command line tool for reading and manipulating yaml files.

2523.6M10](/packages/grasmash-yaml-cli)[ramsey/composer-repl

A REPL for PHP built into Composer.

105111.1k24](/packages/ramsey-composer-repl)[elendev/composer-push

Provide a Push command to composer to push to repositories

53181.4k6](/packages/elendev-composer-push)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
