{"id":21542407,"url":"https://github.com/kool-dev/docker-phpqa","last_synced_at":"2025-07-12T01:37:12.304Z","repository":{"id":40466387,"uuid":"366420651","full_name":"kool-dev/docker-phpqa","owner":"kool-dev","description":"Docker images for PHP Quality Assurance, Static Analysis, and CI tools","archived":false,"fork":false,"pushed_at":"2024-02-29T01:05:38.000Z","size":48,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T05:43:43.322Z","etag":null,"topics":["ci","docker","docker-image","kool","kool-dev","php-docker","php-qa","phpqa","phpqatools","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/kool-dev.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}},"created_at":"2021-05-11T14:57:57.000Z","updated_at":"2021-12-17T23:01:42.000Z","dependencies_parsed_at":"2024-02-29T02:25:39.653Z","dependency_job_id":"6fe626eb-627b-4b7c-a26a-b53daa194e1c","html_url":"https://github.com/kool-dev/docker-phpqa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kool-dev%2Fdocker-phpqa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kool-dev%2Fdocker-phpqa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kool-dev%2Fdocker-phpqa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kool-dev%2Fdocker-phpqa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kool-dev","download_url":"https://codeload.github.com/kool-dev/docker-phpqa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248156120,"owners_count":21056774,"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":["ci","docker","docker-image","kool","kool-dev","php-docker","php-qa","phpqa","phpqatools","static-analysis"],"created_at":"2024-11-24T05:09:32.274Z","updated_at":"2025-04-10T04:25:06.538Z","avatar_url":"https://github.com/kool-dev.png","language":"Dockerfile","readme":"![CI/CD](https://github.com/kool-dev/docker-phpqa/workflows/CI/CD/badge.svg)\n\n## Description\n\nMinimal PHP QA Docker image focused on local/CI static analysis, styling and other tools.\n\nIt's plays nicely with [kool.dev](https://github.com/kool-dev/kool) managed environments, but can fit in any other PHP use-case.\n\n### Tools included in the image\n\n#### Static analysis\n\n- Phan - static analyzer for PHP (`phan`)\n- PHP Mess Detector (`phpmd`)\n- PHP Copy/Paste Detector (`phpcpd`)\n\n#### Code Style\n\n- PHP Coding Standards Fixer (`php-cs-fixer`)\n\n#### Security\n\n- Local PHP Security Checker (`local-php-security-checker`)\n\n#### Testing\n\n- PHPUnit 9.5 (`phpunit`)\n- PHPUnit 10 (`phpunit10` for cutting-edge testing)\n\n## Usage\n\nJust execute any QA tool available straight from a new container. Using [`kool`](https://github.com/kool-dev/kool) is the prefered way:\n\n```sh\ncd my-laravel-project/\nkool docker kooldev/phpqa:7.4 phan\nkool docker kooldev/phpqa:7.4 php-cs-fixer\n```\n\nWith vanilla Docker you would need to run:\n\n```sh\ndocker run --rm --init -it -v $(pwd):/app -w /app kooldev/phpqa:7.4\n```\n\n\u003e We strongly recommend checking out [`kool` CLI](https://github.com/kool-dev/kool) for more benefits to your Docker environemnts.\n\n## Available Tags\n\nThe image built is [`kooldev/phpqa`](https://hub.docker.com/r/kooldev/phpqa/tags?page=1\u0026ordering=last_updated) with tags:\n\n- [**`8.3`**](https://github.com/kool-dev/docker-phpqa/blob/main/8.3/Dockerfile)\n- [**`8.2`**](https://github.com/kool-dev/docker-phpqa/blob/main/8.2/Dockerfile)\n- [**`8.1`**](https://github.com/kool-dev/docker-phpqa/blob/main/8.1/Dockerfile)\n- [**`8.0`**](https://github.com/kool-dev/docker-phpqa/blob/main/8.0/Dockerfile)\n- [**`7.4`**](https://github.com/kool-dev/docker-phpqa/blob/main/7.4/Dockerfile)\n\n## Using `kool.yml`\n\nExamples of what you can do in a `kool` powered environment. Add to your `kool.yml` file:\n\n```yaml\n# kool.yml\nscripts:\n  # just an alias to the PHPQA container\n  phpqa: kool docker kooldev/phpqa:8.1\n  # using the alias to call each tool with predefined parameters\n  # assuming your application code is located in a `app/` folder\n  phan: kool run phpqa phan --color -p -l app -iy 5\n  phpcpd: kool run phpqa phpcpd --fuzzy app\n  # ...\n```\n\n## Contributing\n\nPlease feel free to use and open a PR with more QA tools you find useful to have! As a sort of roadmap these are the goals in our mind for the short term:\n\n- Make tools specific configurations available for the user in a friendly manner.\n- Ship boilerplate of CI snippets for popular engines (Github Actions, CircleCI, TravisCI).\n- Add more tools that we find helpful.\n\n### Update images with templates\n\nYou should change `fwd-template.json` for configuration and `template/` folder for the actual base templates.\n\nAfter any changes, we need to run `kool run template` to parse the templates and generate all versions folder/files.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkool-dev%2Fdocker-phpqa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkool-dev%2Fdocker-phpqa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkool-dev%2Fdocker-phpqa/lists"}