{"id":15008315,"url":"https://github.com/devdrops/php-toolbox","last_synced_at":"2025-10-11T17:22:26.288Z","repository":{"id":46341557,"uuid":"68541797","full_name":"devdrops/php-toolbox","owner":"devdrops","description":":whale: :elephant: A Docker image designed for PHP developers that care about code quality.","archived":false,"fork":false,"pushed_at":"2025-05-21T09:21:24.000Z","size":183,"stargazers_count":37,"open_issues_count":6,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T10:35:57.076Z","etag":null,"topics":["behat","codeception","composer","deptrac","docker","pdepend","pestphp","php","php-codesniffer","php-cs-fixer","php-toolbox","phploc","phpmd","phpmetrics","phpspec","phpstan","phpunit","psalm","swoole","xdebug"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/devdrops/php-toolbox/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devdrops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-09-18T19:12:41.000Z","updated_at":"2025-05-07T01:32:40.000Z","dependencies_parsed_at":"2022-08-22T12:21:23.487Z","dependency_job_id":"2bab6c21-02d3-49aa-9b84-a79c424f5ea7","html_url":"https://github.com/devdrops/php-toolbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devdrops/php-toolbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fphp-toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fphp-toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fphp-toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fphp-toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devdrops","download_url":"https://codeload.github.com/devdrops/php-toolbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdrops%2Fphp-toolbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008114,"owners_count":26084396,"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-10-11T02:00:06.511Z","response_time":55,"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":["behat","codeception","composer","deptrac","docker","pdepend","pestphp","php","php-codesniffer","php-cs-fixer","php-toolbox","phploc","phpmd","phpmetrics","phpspec","phpstan","phpunit","psalm","swoole","xdebug"],"created_at":"2024-09-24T19:17:35.405Z","updated_at":"2025-10-11T17:22:26.224Z","avatar_url":"https://github.com/devdrops.png","language":"Shell","readme":"# devdrops/php-toolbox :whale: :elephant:\n\n![Hadolint status](https://github.com/devdrops/php-toolbox/actions/workflows/hadolint.yml/badge.svg?branch=main)\n![Trivy status](https://github.com/devdrops/php-toolbox/actions/workflows/trivy.yml/badge.svg?branch=main)\n![Snyk Container status](https://github.com/devdrops/php-toolbox/actions/workflows/snyk-container.yml/badge.svg?branch=main)\n![Docker Hub status](https://github.com/devdrops/php-toolbox/actions/workflows/publish-docker-image.yml/badge.svg?branch=main)\n\nA Docker image designed for PHP developers that care about code quality.\n\nAvailable on Docker Hub at [devdrops/php-toolbox](https://hub.docker.com/r/devdrops/php-toolbox/).\n\n## The Project\n\nEach PHP version, starting from **7.4**, have at least 2 tags: one version without Xdebug, and another with Xdebug.\n\n- [PHP 7.4:](./7.4)\n  - `7.4`, `7.4-xdebug`\n- [PHP 8.0:](./8.0)\n  - `8.0`, `8.0-xdebug`\n- [PHP 8.1:](./8.1)\n  - `8.1`, `8.1-xdebug`\n- [PHP 8.2:](./8.2)\n  - `8.2`, `8.2-xdebug`\n- [PHP 8.3:](./8.3)\n  - `latest`, `8.3`, `8.3-xdebug`\n\nThe following tools are available:\n\n|Tool|Description|\n|:---|:---|\n|[PHP](https://www.php.net/)|The PHP programming language.|\n|[PHPUnit](https://phpunit.de/index.html)|PHPUnit is a programmer-oriented testing framework for PHP.|\n|[PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/)|PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.|\n|[PHP CBF](https://phpqa.io/projects/phpcbf.html)|PHP Code Beautifier and Fixer automatically correct coding standard violations.|\n|[PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)|A tool to automatically fix PHP Coding Standards issues.|\n|[PHP Mess Detector](https://phpmd.org/)|Checks for bugs, suboptimal code, overcomplicated expressions, unused parameters etc.|\n|[Behat](https://docs.behat.org/en/latest/)|A php framework for autotesting your business expectations.|\n|[PHPStan](https://phpstan.org/)|PHPStan finds bugs in your code without writing tests.|\n|[composer-unused](https://github.com/composer-unused/composer-unused)|Show unused composer dependencies by scanning your code.|\n|[Psalm](https://psalm.dev/)|Prevent runtime errors and fix bugs automatically.|\n|[Pest](https://pestphp.com/)|The elegant PHP testing framework.|\n|[Rector](https://github.com/rectorphp/rector)|Instant Upgrades and Automated Refactoring of any PHP 5.3+ code.|\n|[PHPArkitect](https://github.com/phparkitect/arkitect)|Put your architectural rules under test!|\n|[phpspec](https://phpspec.net/en/stable/)|A php toolset to drive emergent design by specification.|\n|[Codeception](https://codeception.com/)|Codeception collects and shares best practices and solutions for testing PHP web applications.|\n|[Infection](https://infection.github.io/)|PHP Mutation Testing Framework|\n|[Deptrac](https://qossmic.github.io/deptrac/)|Deptrac is a static code analysis tool for PHP that helps you communicate, visualize and enforce architectural decisions in your projects.|\n|[PhpMetrics](https://phpmetrics.org/)|PhpMetrics provides various metrics about PHP projects.|\n|[PDepend](https://pdepend.org/)|PHP_Depend software analyzer and metric tool.|\n\n## Install\n\n```bash\ndocker pull devdrops/php-toolbox\n```\n\n## Usage\n\nAll tools can be accessed by executing:\n\n```bash\ndocker run -ti --rm -v $(pwd):/code -w /code devdrops/php-toolbox:latest \u003cCHOOSEN_TOOL\u003e\n```\n\nWhere `\u003cCHOOSEN_TOOL\u003e` is the binary you're looking for :wink:\n\n## Build it!\n\nClone this repository. Then, using a terminal window, go to it's root directory. Each version folder have it's own\n`Makefile` with the following commands (you can run `make help` to see a brief explanation of each command):\n\n```\nbuild                          Build the official tag.\ndebug                          Build only the image with Xdebug.\ndevelop                        Build '*-dev' tag, including Xdebug.\nhadolint                       Lint ./Dockerfile with Hadolint\nhelp                           Print information of each Make task.\nlatest                         Build two images: 1. official tag, 2. official tag + Xdebug.\npush                           Pushes to Docker Hub two images: 1. official tag, 2. official tag + Xdebug.\nrelease                        Build and deploy official tags.\nshellcheck                     Run shellcheck to scan sh files at ./helpers.\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fphp-toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdrops%2Fphp-toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdrops%2Fphp-toolbox/lists"}