{"id":15525361,"url":"https://github.com/ghostwriter/php","last_synced_at":"2025-03-28T20:49:25.639Z","repository":{"id":37950832,"uuid":"260006384","full_name":"ghostwriter/php","owner":"ghostwriter","description":"Development and Production-ready PHP Alpine Images for Docker with Multi-Architecture support","archived":false,"fork":false,"pushed_at":"2025-03-18T06:50:06.000Z","size":448,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T07:38:58.877Z","etag":null,"topics":["composer","docker","php","php-cli","php-fpm","php-zts","xdebug"],"latest_commit_sha":null,"homepage":"https://ghcr.io/ghostwriter/php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostwriter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ghostwriter"]}},"created_at":"2020-04-29T18:16:14.000Z","updated_at":"2025-03-18T06:50:08.000Z","dependencies_parsed_at":"2024-07-09T23:48:37.174Z","dependency_job_id":"c7b79920-5579-4719-afed-37b16354acd5","html_url":"https://github.com/ghostwriter/php","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/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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246100494,"owners_count":20723469,"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":["composer","docker","php","php-cli","php-fpm","php-zts","xdebug"],"created_at":"2024-10-02T10:57:04.952Z","updated_at":"2025-03-28T20:49:25.617Z","avatar_url":"https://github.com/ghostwriter.png","language":"PHP","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 the fantastic [`mlocati/docker-php-extension-installer`](https://github.com/mlocati/docker-php-extension-installer) tool, which made all of this possible!**\n\n\u003e **Supported versions: [`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)**\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\n## PHP 8.2\n\n#### ![Code](resource/icons/code.svg) Use `PHP 8.2` image in Dockerfile\n\n**CLI with code coverage**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.2\n```\n**CLI**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.2-cli\n```\n**FPM**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.2-fpm\n```\n**ZTS**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.2-zts\n```\n\n#### ![Terminal](resource/icons/terminal.svg) Pull \u0026 Run `PHP 8.2` image from the command line\n\n**CLI with code coverage**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.2\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.2 php -v\n```\n**CLI**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.2-cli\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.2-cli php -v\n```\n**FPM**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.2-fpm\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.2-fpm php -v\n```\n**ZTS**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.2-zts\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.2-zts php -v\n```\n\n## PHP 8.1\n\n#### ![Code](resource/icons/code.svg) Use `PHP 8.1` image in Dockerfile\n\n**CLI with code coverage**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.1\n```\n**CLI**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.1-cli\n```\n**FPM**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.1-fpm\n```\n**ZTS**\n```Dockerfile\nFROM ghcr.io/ghostwriter/php:8.1-zts\n```\n\n#### ![Terminal](resource/icons/terminal.svg) Pull \u0026 Run `PHP 8.1` image from the command line\n\n**CLI with code coverage**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.1\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.1 php -v\n```\n**CLI**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.1-cli\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.1-cli php -v\n```\n**FPM**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.1-fpm\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.1-fpm php -v\n```\n**ZTS**\n```sh\ndocker pull ghcr.io/ghostwriter/php:8.1-zts\ndocker run -it --rm -v $PWD:/opt/app -w /opt/app ghcr.io/ghostwriter/php:8.1-zts php -v\n```\n","funding_links":["https://github.com/sponsors/ghostwriter"],"categories":[],"sub_categories":[],"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"}