{"id":22748836,"url":"https://github.com/apinstein/watchngo","last_synced_at":"2025-07-19T06:36:47.709Z","repository":{"id":56949385,"uuid":"12360800","full_name":"apinstein/watchngo","owner":"apinstein","description":"A php-native inotify-based file watcher to easily trigger compilation. Debounces and coalesces changes to multiple files related to the same desired action.","archived":false,"fork":false,"pushed_at":"2013-10-22T17:35:26.000Z","size":132,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T12:06:07.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/apinstein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-25T15:13:34.000Z","updated_at":"2017-10-23T21:35:20.000Z","dependencies_parsed_at":"2022-08-21T03:10:18.384Z","dependency_job_id":null,"html_url":"https://github.com/apinstein/watchngo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apinstein/watchngo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2Fwatchngo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2Fwatchngo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2Fwatchngo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2Fwatchngo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apinstein","download_url":"https://codeload.github.com/apinstein/watchngo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apinstein%2Fwatchngo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265898325,"owners_count":23845774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-11T03:36:00.046Z","updated_at":"2025-07-19T06:36:47.684Z","avatar_url":"https://github.com/apinstein.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"watchngo\n========\n\nA php-native inotify-based file watcher to easily trigger compilation. Debounces and coalesces changes to multiple files related to the same desired action.\n\nBackground\n==========\n\nWe have a large app with 4-5 different things that need \"watch \u0026 recompile\" functionality (compass, coffeescript, etc). \n\nI spent *hours* trying to get various solutions like guard working but was never able to get them configured to work properly. Also in many cases they didn't notice events on certain machines, I think due to the different save mechanisms of say vim vs TextMate.\n\nBesides, I am sick of having to use ruby/node projects to manage tasks in my PHP codebase, and am trying to help the PHP community have access to more robust tooling.\n\n* guard for php\n* grunt for php\n\nFeatures\n========\n\n* Configure as many different \"groups\" as you want\n* Specify a glob of files to monitor\n* Specify an action to perform when a change is detected in the monitored files\n* Each groups' various watches are coalseced and de-bounced, such that if you *save all* on various files in a project, the action will run only once, and only after the *last* detected change, debounced at 2s\n\nStatus\n======\n\nThe script completley works, but it's obviously terrible code. I was just testing out the basic parts as fast as possible.\n\nGoing forward I'd like to refactor this into a proper CLI app with a config file, and possible plugins which can generate configs for common projects like (ie a compass generator could inspect your compass configs and auto-generate watchngo configs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinstein%2Fwatchngo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapinstein%2Fwatchngo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapinstein%2Fwatchngo/lists"}