PHPackages                             amad/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. amad/watcher

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

amad/watcher
============

Run arbitrary command on file change. watch-and-runner

1.0.1(9y ago)1941[1 issues](https://github.com/amad/watcher/issues)MITPHPPHP &gt;=5.5.9

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/amad/watcher)[ Packagist](https://packagist.org/packages/amad/watcher)[ Docs](https://amad.github.io/watcher)[ RSS](/packages/amad-watcher/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Watcher
=======

[](#watcher)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/amad/watcher/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/3e73a5b806b7f2ddb5c197ffa359fa35d54e766fae28a8398f9b53005c41f288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d61642f776174636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amad/watcher)[![Minimum PHP Version](https://camo.githubusercontent.com/7cdd44984038f8360d91387d647d7b21444784f013ed71bb04490f31dd863a6c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e352e392d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/7c6818330529c791eb54d5cdee4176bd49e2505a9d362c1d0d7f1a458c7444c2/68747470733a2f2f7472617669732d63692e6f72672f616d61642f776174636865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/amad/watcher)[![StyleCI](https://camo.githubusercontent.com/af47d9a808ea2182696e7f38bfd073580ea75e3a8fd3eb154e0eb6044b5f4887/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353632303233312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/65620231)[![SensioLabsInsight](https://camo.githubusercontent.com/27c882ae6c2672ba197957c117b1e05a7ebc4dfd81cb47da9ecff3d9e2ae294f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37363666323863642d373831312d346235332d623266622d3937343333326435393032332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/766f28cd-7811-4b53-b2fb-974332d59023)

Watcher is simple tools to run your arbitrary command on file changes.

```
$ watcher   ()...

```

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

[](#installation)

```
$ composer global require amad/watcher

```

Example Usage
-------------

[](#example-usage)

```
$ watcher phpunit ./

```

```
$ watcher 'clear && phpunit -c phpunit.xml' src/ tests/

```

```
$ watcher 'docker run unitests' src/ tests/

```

```
$ watcher 'docker exec project-container behat' src/ tests/features/

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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 ~21 days

Total

2

Last Release

3513d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48733?v=4)[Ahmad Samiei](/maintainers/Amad)[@amad](https://github.com/amad)

---

Top Contributors

[![amad](https://avatars.githubusercontent.com/u/48733?v=4)](https://github.com/amad "amad (2 commits)")

---

Tags

resourcewatcherwatchwatch-and-runner

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k193.1M3.0k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M24.0k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)

PHPackages © 2026

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