{"id":43707354,"url":"https://github.com/michaelpetri/symfony-file-watcher","last_synced_at":"2026-02-05T06:06:37.826Z","repository":{"id":145286521,"uuid":"617000666","full_name":"michaelpetri/symfony-file-watcher","owner":"michaelpetri","description":"File watcher based on symfony/messenger and git","archived":false,"fork":false,"pushed_at":"2025-07-16T04:48:00.000Z","size":407,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T11:27:22.828Z","etag":null,"topics":["php","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelpetri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-21T14:03:36.000Z","updated_at":"2025-04-16T09:02:57.000Z","dependencies_parsed_at":"2023-09-25T07:10:52.905Z","dependency_job_id":"b199f971-40e1-4bd3-b28c-fc7e78d02f5b","html_url":"https://github.com/michaelpetri/symfony-file-watcher","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/michaelpetri/symfony-file-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpetri%2Fsymfony-file-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpetri%2Fsymfony-file-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpetri%2Fsymfony-file-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpetri%2Fsymfony-file-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelpetri","download_url":"https://codeload.github.com/michaelpetri/symfony-file-watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelpetri%2Fsymfony-file-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29114571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","symfony"],"created_at":"2026-02-05T06:06:36.706Z","updated_at":"2026-02-05T06:06:37.820Z","avatar_url":"https://github.com/michaelpetri.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony File Watcher\n\n[![Type Coverage](https://shepherd.dev/github/michaelpetri/symfony-file-watcher/coverage.svg)](https://shepherd.dev/github/michaelpetri/symfony-file-watcher)\n[![Latest Stable Version](https://poser.pugx.org/michaelpetri/symfony-file-watcher/v)](https://packagist.org/packages/michaelpetri/symfony-file-watcher)\n[![License](https://poser.pugx.org/michaelpetri/symfony-file-watcher/license)](https://packagist.org/packages/michaelpetri/symfony-file-watcher)\n\nThis package contains a file watcher based on [symfony/messenger](https://github.com/symfony/messenger) and [michaelpetri/php-git](https://github.com/michaelpetri/php-git).\n\nSince it is based on git it can emmit events for files even after it has been paused for a decent time. All changes will\ntrigger a `FileCreated`, `FileChanged` or `FileDeleted` event which then can be handled by an event handler.\n\n\u003e **Note:**\n\u003e Keep in mind that git is not good at handling binary files and using this package can lead to bloated disk usage!  \n\n## Installation\n\n```shell\ncomposer require michaelpetri/symfony-file-watcher \n```\n\n## Usage\n\n```yaml\n# messenger.yaml\ntransports:\n  my-file-watcher:\n    dsn: 'watch:///absolute/path/to/files?timeout=60000' # timeout in milliseconds\n```\n\n```shell\nbin/console messenger:setup\nbin/console messenger:consume my-file-watcher\n```\n\n## Sponsor\n\n[![Lyska.cloud](https://avatars.githubusercontent.com/u/82085619?s=400\u0026u=bf1fb2d6dec05e5911a190964568903b7a795592\u0026v=4)](https://lyska.cloud)\n\nBy using cutting-edge technology, process automation and taking responsibility for integration, synchronization, quality and consistency of your data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelpetri%2Fsymfony-file-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelpetri%2Fsymfony-file-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelpetri%2Fsymfony-file-watcher/lists"}