{"id":22746299,"url":"https://github.com/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin","last_synced_at":"2025-08-19T15:09:29.006Z","repository":{"id":53456252,"uuid":"236916504","full_name":"yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin","owner":"yukihiko-shinoda","description":"Docker Compose for PHPUnit for WordPress plugin.","archived":false,"fork":false,"pushed_at":"2023-01-03T12:08:04.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T03:47:28.912Z","etag":null,"topics":["docker","docker-compose","phpcs","phpunit","remote-development","remote-development-container","visual-studio-code","vscode","wordpress","wordpress-development","wordpress-plugin","wordpress-plugin-development","wp","wp-plugin"],"latest_commit_sha":null,"homepage":null,"language":null,"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/yukihiko-shinoda.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":"2020-01-29T06:13:39.000Z","updated_at":"2023-01-03T12:08:09.000Z","dependencies_parsed_at":"2023-02-01T06:01:26.422Z","dependency_job_id":null,"html_url":"https://github.com/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yukihiko-shinoda","download_url":"https://codeload.github.com/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271173377,"owners_count":24711667,"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-19T02:00:09.176Z","response_time":63,"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":["docker","docker-compose","phpcs","phpunit","remote-development","remote-development-container","visual-studio-code","vscode","wordpress","wordpress-development","wordpress-plugin","wordpress-plugin-development","wp","wp-plugin"],"created_at":"2024-12-11T02:12:47.434Z","updated_at":"2025-08-19T15:09:28.983Z","avatar_url":"https://github.com/yukihiko-shinoda.png","language":null,"readme":"# 💻PHPUnit Environment for WordPress Plugin🌐\n\n[![docker build automated?](https://img.shields.io/docker/cloud/automated/futureys/phpunit-wordpress-plugin.svg)](https://hub.docker.com/r/futureys/phpunit-wordpress-plugin/builds)\n[![docker build passing?](https://img.shields.io/docker/cloud/build/futureys/phpunit-wordpress-plugin.svg)](https://hub.docker.com/r/futureys/phpunit-wordpress-plugin/builds)\n[![image size and number of layers](https://images.microbadger.com/badges/image/futureys/phpunit-wordpress-plugin.svg)](https://hub.docker.com/r/futureys/phpunit-wordpress-plugin/dockerfile)\n[![Twitter URL](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fgithub.com%2Fyukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin)](http://twitter.com/share?text=%F0%9F%92%BBPHPUnit%20Environment%20for%20WordPress%20Plugin%F0%9F%8C%90\u0026url=https://github.com/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin\u0026hashtags=wordpress,phpunit,vscode)\n\nSupplies PHPUnit environment built acording to\n[official document on WordPress.org](https://make.wordpress.org/cli/handbook/plugin-unit-tests/#running-tests-locally).\n\nContents:\n\n- [Benefit](#benefit)\n- [Requirement](#requirement)\n- [Quickstart](#quickstart)\n- [Out of scope](#out-of-scopde)\n\n## Benefit\n\n- [🛠️Use for backend development](#use-for-backend-development)\n- [🎈Easy to prepare](#easy-to-prepare)\n- [✨Clean for PC](#clean-for-pc)\n\n### 🛠️Use for backend development\n\nThis environment provides following tools:\n\n- PHPUnit\n- Mockery\n- PHP_CodeSniffer\n\nAnd also can work with Visual Studio Code.\nYou can lint your code on editor in real time.\n\n### 🎈Easy to prepare\n\nYou can skip much steps to prepare environment.\nAnd you will be able to start Unit Test for WordPres plugin with [only few steps](#Quickstart).\n\n### ✨Clean for PC\n\nYou don't need to install any SDKs in your PC without [only few requirements](#requirement). You will be free from regular maintenance for development environment.\n\n## Requirement\n\n- Docker\n- Docker Compose\n\n### Optional\n\n- Visual Studio Code (Recommend)\n  - [In case when Windows, only Windows 10 Pro/Enterprise is supported.](https://code.visualstudio.com/docs/remote/containers#_system-requirements)\n\n## Quickstart\n\n### With Visual Studio Code (Recommend)\n\n[Tutorial with screenshot are available on the Wiki](https://github.com/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin/wiki).\n\n### Without Visual Studio Code\n\nIf you want to use other editor or IDE,\nyou also can use this environment only for running PHPUnit or PHP_CodeSniffer.\n\n#### 1. Clone or download\n\n```console\ngit clone https://github.com/yukihiko-shinoda/docker-compose-phpunit-wordpress-plugin.git\n```\n\n#### 2. Set environment variables\n\nCopy ```.env.dist``` to ```.env```.\n\n```console\ncopy .env.dist .env\n```\n\nEdit ```.env``` to set ```PATH_TO_INDIVIDUAL_PLUGIN_DIRECTORY```.\n\nEx:\n\n```ini\nPATH_TO_INDIVIDUAL_PLUGIN_DIRECTORY=../plugins/staticpress2019\n# DOCKER_IMAGE_PHPUNIT=futureys/phpunit-wordpress-plugin:4.3.22-php7.1.33-apache-buster\n# MYSQL_VERSION=5.6\n```\n\n#### 3. Execute Docker Compose run\n\n```console\ndocker-compose run phpunit\n```\n\nAnd then, you can execute PHPUnit and PHP_CodeSniffer.\n\n```console\nphpunit\n```\n\n```console\nphpcs\n```\n\n## Out of scope\n\nUI test is not available by this environment.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukihiko-shinoda%2Fdocker-compose-phpunit-wordpress-plugin/lists"}