{"id":15525361,"url":"https://github.com/ghostwriter/php","last_synced_at":"2026-05-09T17:35:23.390Z","repository":{"id":37950832,"uuid":"260006384","full_name":"ghostwriter/php","owner":"ghostwriter","description":"[WIP] Development and Production-ready PHP Alpine Images for Docker with Multi-Architecture support","archived":false,"fork":false,"pushed_at":"2026-03-31T09:25:15.000Z","size":76659,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T11:34:38.526Z","etag":null,"topics":["composer","docker","ghostwriter","php","php-cli","php-fpm","php-zts","xdebug"],"latest_commit_sha":null,"homepage":"https://github.com/ghostwriter/php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostwriter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ghostwriter"]}},"created_at":"2020-04-29T18:16:14.000Z","updated_at":"2026-03-31T09:25:18.000Z","dependencies_parsed_at":"2024-07-09T23:48:37.174Z","dependency_job_id":"4387d2d1-c120-4d20-a16e-37a76fb3c68c","html_url":"https://github.com/ghostwriter/php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghostwriter/php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostwriter","download_url":"https://codeload.github.com/ghostwriter/php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32828635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["composer","docker","ghostwriter","php","php-cli","php-fpm","php-zts","xdebug"],"created_at":"2024-10-02T10:57:04.952Z","updated_at":"2026-05-09T17:35:23.383Z","avatar_url":"https://github.com/ghostwriter.png","language":"PHP","funding_links":["https://github.com/sponsors/ghostwriter"],"categories":[],"sub_categories":[],"readme":"# PHP for Docker [![Docker CI/CD](https://github.com/ghostwriter/php/actions/workflows/docker-build-push.yml/badge.svg)](https://github.com/ghostwriter/php/actions/workflows/docker-build-push.yml)\n\nDevelopment and Production-ready PHP Images for Docker\n\n**Special thanks to [@mlocati](https://github.com/mlocati) for creating this fantastic tool [`mlocati/docker-php-extension-installer`](https://github.com/mlocati/docker-php-extension-installer), which made all of this possible!**\n\n\u003e **Supported versions: [`8.5`](#-use-php-85-image-in-dockerfile), [`8.4`](#-use-php-84-image-in-dockerfile), [`8.3`](#-use-php-83-image-in-dockerfile), [`8.2`](#-use-php-82-image-in-dockerfile), [`8.1`](#-use-php-81-image-in-dockerfile), [`8.0`](#-use-php-80-image-in-dockerfile), [`7.4`](#-use-php-74-image-in-dockerfile)**\n\n## PHP 8.5\n\n#### ![Code](resource/icons/code.svg) Use `PHP 8.5` image in Dockerfile\n\n**CLI with code coverage**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.5\n```\n**CLI**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.5-cli\n```\n**FPM**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.5-fpm\n```\n**ZTS**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.5-zts\n```\n\n#### ![Terminal](resource/icons/terminal.svg) Pull \u0026 Run `PHP 8.5` image from the command line\n\n**CLI with code coverage**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.5\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.5 php -v\n```\n**CLI**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.5-cli\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.5-cli php -v\n```\n**FPM**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.5-fpm\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.5-fpm php -v\n```\n**ZTS**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.5-zts\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.5-zts php -v\n```\n\n## PHP 8.4\n\n#### ![Code](resource/icons/code.svg) Use `PHP 8.4` image in Dockerfile\n\n**CLI with code coverage**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.4\n```\n**CLI**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.4-cli\n```\n**FPM**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.4-fpm\n```\n**ZTS**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.4-zts\n```\n\n#### ![Terminal](resource/icons/terminal.svg) Pull \u0026 Run `PHP 8.4` image from the command line\n\n**CLI with code coverage**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.4\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.4 php -v\n```\n**CLI**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.4-cli\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.4-cli php -v\n```\n**FPM**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.4-fpm\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.4-fpm php -v\n```\n**ZTS**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.4-zts\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.4-zts php -v\n```\n\n## PHP 8.3\n\n#### ![Code](resource/icons/code.svg) Use `PHP 8.3` image in Dockerfile\n\n**CLI with code coverage**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.3\n```\n**CLI**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.3-cli\n```\n**FPM**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.3-fpm\n```\n**ZTS**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.3-zts\n```\n\n#### ![Terminal](resource/icons/terminal.svg) Pull \u0026 Run `PHP 8.3` image from the command line\n\n**CLI with code coverage**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.3\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.3 php -v\n```\n**CLI**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.3-cli\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.3-cli php -v\n```\n**FPM**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.3-fpm\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.3-fpm php -v\n```\n**ZTS**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.3-zts\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.3-zts php -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostwriter%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fphp/lists"}