PHPackages                             michaelpetri/symfony-file-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. michaelpetri/symfony-file-watcher

AbandonedArchivedLibrary

michaelpetri/symfony-file-watcher
=================================

Symfony Message Receiver to receive filesystem events.

0.2.5(3y ago)61.6k1[3 PRs](https://github.com/michaelpetri/symfony-file-watcher/pulls)MITPHPPHP ~8.1.0 || ~8.2.0CI passing

Since Apr 5Pushed 3mo ago2 watchersCompare

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

READMEChangelog (9)Dependencies (9)Versions (14)Used By (0)

Symfony File Watcher
====================

[](#symfony-file-watcher)

[![Type Coverage](https://camo.githubusercontent.com/2669959373e6fae67f49caa4c318d0180bc029a7c44cd45ae8dbbecdf24fbe1e/68747470733a2f2f73686570686572642e6465762f6769746875622f6d69636861656c70657472692f73796d666f6e792d66696c652d776174636865722f636f7665726167652e737667)](https://shepherd.dev/github/michaelpetri/symfony-file-watcher)[![Latest Stable Version](https://camo.githubusercontent.com/622a7df84bbd2418d15d2f077af0654005a20a68d5f00f94ec6fa7ca4c8f20ae/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c70657472692f73796d666f6e792d66696c652d776174636865722f76)](https://packagist.org/packages/michaelpetri/symfony-file-watcher)[![License](https://camo.githubusercontent.com/b505fc08bdf364eb7348ffd40beb363ca72580aa814ced8d79f62aad11f70b94/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c70657472692f73796d666f6e792d66696c652d776174636865722f6c6963656e7365)](https://packagist.org/packages/michaelpetri/symfony-file-watcher)

This package contains a file watcher based on [symfony/messenger](https://github.com/symfony/messenger) and [michaelpetri/php-git](https://github.com/michaelpetri/php-git).

Since it is based on git it can emmit events for files even after it has been paused for a decent time. All changes will trigger a `FileCreated`, `FileChanged` or `FileDeleted` event which then can be handled by an event handler.

> **Note:**Keep in mind that git is not good at handling binary files and using this package can lead to bloated disk usage!

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

[](#installation)

```
composer require michaelpetri/symfony-file-watcher
```

Usage
-----

[](#usage)

```
# messenger.yaml
transports:
  my-file-watcher:
    dsn: 'watch:///absolute/path/to/files?timeout=60000' # timeout in milliseconds
```

```
bin/console messenger:setup
bin/console messenger:consume my-file-watcher
```

Sponsor
-------

[](#sponsor)

[![Lyska.cloud](https://avatars.githubusercontent.com/u/82085619?s=400&u=bf1fb2d6dec05e5911a190964568903b7a795592&v=4)](https://lyska.cloud)

By using cutting-edge technology, process automation and taking responsibility for integration, synchronization, quality and consistency of your data.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance54

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.4% 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 ~4 days

Total

9

Last Release

1095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74dcb48accd64ea1dd40d20cddc713f68805da8c3281da7369eba28c64d4e62e?d=identicon)[michaelpetri](/maintainers/michaelpetri)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (146 commits)")[![michaelpetri](https://avatars.githubusercontent.com/u/4114292?v=4)](https://github.com/michaelpetri "michaelpetri (7 commits)")

---

Tags

phpsymfony

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/michaelpetri-symfony-file-watcher/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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