{"id":20903509,"url":"https://github.com/phly/php-qa-watch","last_synced_at":"2025-08-04T12:12:50.242Z","repository":{"id":57322984,"uuid":"71825192","full_name":"phly/php-qa-watch","owner":"phly","description":"Automate QA checks for your PHP project","archived":false,"fork":false,"pushed_at":"2017-01-04T18:37:48.000Z","size":28,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T07:03:22.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-24T19:36:51.000Z","updated_at":"2019-01-15T12:45:31.000Z","dependencies_parsed_at":"2022-09-10T16:51:58.473Z","dependency_job_id":null,"html_url":"https://github.com/phly/php-qa-watch","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/phly/php-qa-watch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphp-qa-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphp-qa-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphp-qa-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphp-qa-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phly","download_url":"https://codeload.github.com/phly/php-qa-watch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phly%2Fphp-qa-watch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268650350,"owners_count":24284246,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-18T13:13:50.962Z","updated_at":"2025-08-04T12:12:50.209Z","avatar_url":"https://github.com/phly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-qa-watch\n\nAutomate running your PHP QA toolset!\n\n## Installation\n\n```bash\n# npm\n$ npm i phly-php-qa-watch -g\n# yarn\n$ yarn global add phly-php-qa-watch\n```\n\n## Usage\n\nAt its most basic, execute the watcher:\n\n```bash\n$ php-qa-watch\n```\n\nBy default, the script, runs `composer check` when any of the following change:\n\n- `phpunit.xml.dist`\n- `phpcs.xml`\n- any PHP files under `src/`\n- any PHP files under `test/`\n\nYou can alter the behavior via the following flags:\n\n- `-d|--no-notifications` will disable system notifications when failures occur\n- `-w|--watch-files` allows you to provide a comma separated list of files/glob\n  patterns to watch\n- `-c|--check-command` allows you to specify an alternate command to run in\n  order to perform checks; defaults to \"composer check\"\n\nUsing either `-h` or `--help` will provide the usage message as well.\n\n### Using alternate checkers\n\nTo use an alternate tool or pipeline for checking your project, use the `-c` or\n`--check-command` flags to provide one. As an example, perhaps you want to\ncombine several composer scripts, without writing an aggregate:\n\n```bash\n$ php-qa-watch -c \"composer cs-lint \u0026\u0026 composer unit-test \u0026\u0026 composer mess-detector\"\n```\n\nAlternately, perhaps you don't have composer scripts defined; you can just\nspecify an `\u0026\u0026`'d set of commands in that case:\n\n```bash\n$ php-qa-watch -c \"./vendor/bin/php-cs-fixer fix --dry-run -v --diff \u0026\u0026 phpunit --colors=always\"\n```\n\n### Specifying different files to watch\n\nThe `-w` or `--watch-files` flags allow you to specify a comma-separated list of\nfiles, directories, or glob patterns detailing what files to watch for changes.\n\nLet's combine this with the above example:\n\n```bash\n$ php-qa-watch \\\n\u003e -c \"./vendor/bin/php-cs-fixer fix --dry-run -v --diff \u0026\u0026 phpunit --colors=always\" \\\n\u003e -w \".php_cs,phpunit.xml,phpunit.xml.dist,src/**/*.php,test/**/*.php\"\n```\n\nThe above adds ensures that the `.php_cs` and `phpunit.xml` files are watched,\nbut not the `phpcs.xml` (which is in the default set).\n\n### Disabling notifications\n\nBy default, `php-qa-watch` will provide a system notification when the specified\nchecker fails. This is done to allow you to run the watcher in a hidden\nterminal, and only raise it when you see a notification of a break.\n\nIf you do not want the notification, disable it with the `-d` or\n`--no-notifications` flag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphly%2Fphp-qa-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphly%2Fphp-qa-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphly%2Fphp-qa-watch/lists"}