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.1kMITPHP

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 today

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 57% 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

823d 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

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k894.7k87](/packages/humbug-box)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M563](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)

PHPackages © 2026

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