{"id":19197012,"url":"https://github.com/jitesoft/docker-phpunit","last_synced_at":"2025-06-11T04:40:07.954Z","repository":{"id":76670267,"uuid":"86616273","full_name":"jitesoft/docker-phpunit","owner":"jitesoft","description":"PHPUnit docker image","archived":false,"fork":false,"pushed_at":"2023-12-05T09:48:01.000Z","size":125,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T00:37:12.979Z","etag":null,"topics":["docker","docker-phpunit","dockerfile","hacktoberfest","php","phpunit","xdebug"],"latest_commit_sha":null,"homepage":null,"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/jitesoft.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-29T18:31:20.000Z","updated_at":"2023-04-12T09:49:16.000Z","dependencies_parsed_at":"2023-03-10T06:30:32.251Z","dependency_job_id":"e1e36d18-f768-4781-80bc-db790a98f283","html_url":"https://github.com/jitesoft/docker-phpunit","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/jitesoft%2Fdocker-phpunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fdocker-phpunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fdocker-phpunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fdocker-phpunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/docker-phpunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171210,"owners_count":21865280,"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":["docker","docker-phpunit","dockerfile","hacktoberfest","php","phpunit","xdebug"],"created_at":"2024-11-09T12:15:15.635Z","updated_at":"2025-05-09T00:37:18.356Z","avatar_url":"https://github.com/jitesoft.png","language":"Dockerfile","funding_links":["https://opencollective.com/jitesoft-open-source","https://github.com/sponsors/jitesoft","https://www.patreon.com/jitesoft"],"categories":[],"sub_categories":[],"readme":"# PHPUnit\r\n\r\n[![Docker Pulls](https://img.shields.io/docker/pulls/jitesoft/phpunit.svg)](https://cloud.docker.com/u/jitesoft/repository/docker/jitesoft/phpunit)\r\n[![Back project](https://img.shields.io/badge/Open%20Collective-Tip%20the%20devs!-blue.svg)](https://opencollective.com/jitesoft-open-source)\r\n\r\nImage includes php (cli), [composer](https://getcomposer.org/), [xdebug](https://xdebug.org/) and [phpunit](https://phpunit.de/).  \r\nIt's derived from [`jitesoft/composer`](https://gitlab.com/jitesoft/dockerfiles/composer-alpine/blob/master/Dockerfile).\r\n\r\n## Tags\r\n\r\nEach version has a base tag of `php_version-phpunit_version` where php version is major and minor version (I.E., 7.3, 7.2 etc) and phpunit is the major version (I.E., 9, 8 etc).  \r\nThe `latest` and `stable` images are using the latest version of php and phpunit, all includes composer and xdebug.\r\n\r\nEach tag is built for amd64 and arm64.\r\n\r\n### Docker Hub\r\n\r\n* `jitesoft/phpunit`\r\n\r\n### GitLab\r\n\r\n* `registry.gitlab.com/jitesoft/dockerfiles/phpunit`\r\n\r\n### GitHub\r\n\r\n* `ghcr.io/jitesoft/phpunit`\r\n\r\nDockerfile can be found at [GitLab](https://gitlab.com/jitesoft/dockerfiles/composer-alpine/blob/master/Dockerfile) or [GitHub](https://github.com/jitesoft/docker-phpunit/blob/master/Dockerfile)\r\n\r\n## Usage\r\n\r\nEnter directory in which you intend to run phpunit from. Run the desired command with:\r\n\r\n```bash\r\ndocker run --rm -v $(pwd):/app jitesoft/phpunit --configuration phpunit.xml\r\n```\r\n### Debugging\r\nTo get Xdebug to turn on its debugger you will need to set the environmental variable XDEBUG_MODE.\r\n\r\n```bash\r\ndocker run --rm -e XDEBUG_MODE=debug -v $(pwd):/app jitesoft/phpunit --configuration phpunit.xml\r\n```\r\nOr in docker compose:\r\n\r\n```yml\r\nphpunit:\r\n    container_name: phpunit\r\n    image: jitesoft/phpunit:8.2\r\n    environment:\r\n      - \"XDEBUG_MODE=debug\"\r\n    volumes:\r\n      - \"./php:/app/\"\r\n      - \"./conf/phpunit/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini\"\r\n      - \"./conf/phpunit/xdebug.log:/var/log/xdebug.log\"\r\n```\r\n\r\n### Image labels\r\n\r\nThis image follows the [Jitesoft image label specification 1.0.0](https://gitlab.com/snippets/1866155).\r\n\r\n## Licenses\r\n\r\nThe files in this repository are released under the MIT License.  \r\nComposer is released under the [MIT](https://github.com/composer/composer/blob/master/LICENSE) license.  \r\nRead the PHP license [here](https://www.php.net/license/index.php).  \r\nRead the phpunit license [here](https://github.com/sebastianbergmann/phpunit/blob/master/LICENSE).\r\n\r\n### Sponsors\r\n\r\nJitesoft images are built via GitLab CI on runners hosted by the following wonderful organisations:\r\n\r\n\u003ca href=\"https://osuosl.org/\" target=\"_blank\" title=\"Oregon State University - Open Source Lab\"\u003e\r\n    \u003cimg src=\"https://jitesoft.com/images/oslx128.webp\" alt=\"Oregon State University - Open Source Lab\"\u003e\r\n\u003c/a\u003e\r\n\r\n_The companies above are not affiliated with Jitesoft or any Jitesoft Projects directly._\r\n\r\n---\r\n\r\nSponsoring is vital for the further development and maintaining of open source.  \r\nQuestions and sponsoring queries can be made by \u003ca href=\"mailto:sponsor@jitesoft.com\"\u003eemail\u003c/a\u003e.  \r\nIf you wish to sponsor our projects, reach out to the email above or visit any of the following sites:\r\n\r\n[Open Collective](https://opencollective.com/jitesoft-open-source)  \r\n[GitHub Sponsors](https://github.com/sponsors/jitesoft)  \r\n[Patreon](https://www.patreon.com/jitesoft)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fdocker-phpunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fdocker-phpunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fdocker-phpunit/lists"}