# docker-library/php

Docker Official Image packaging for PHP

Repository: https://github.com/docker-library/php
Canonical: https://ross.abutalabs.com/products/php
Homepage: https://php.net
Language: Dockerfile
License: MIT
License Family: permissive
Last push: 2026-08-13T22:54:57+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 4424, "days_push": 20, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4038, forks 2017 (observed 2026-08-28T04:08:33.484897+00:00)

## What it is
The Docker Official Image packaging repository for PHP, containing the Dockerfiles and build scripts that produce the official `php` images on Docker Hub. It provides prebuilt, community-maintained PHP runtime images across many versions and variants (CLI, Apache, FPM, ZTS) for multiple architectures.

## Use cases
- run php applications in docker containers
- official php docker image for my web app
- containerize a php-fpm application
- base image for php cli scripts in ci
- run different php versions side by side in containers
- docker image with apache and php preinstalled

## When to choose
- you want a trusted, regularly updated PHP base image maintained by the Docker community
- you need multiple PHP versions or variants (fpm, apache, cli, alpine) with multi-arch support
- you are deploying PHP apps to Kubernetes or any container platform

## When to avoid
- you need a custom PHP build with uncommon extensions compiled in
- you want the PHP language itself or its documentation rather than container packaging
- you need a minimal distroless image not offered by the official variants

## Facets
- artifact type: infra-config
- maturity: stable
- function: container-runtime, deployment, developer-tools
- domain: web-development, backend
- platform: php, cross-platform
- tags: docker-official-image, php, container-images, dockerfile, packaging, containers, devops, docker, linux

## Member repositories
- docker-library/php (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:33.484897+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:46.989068+00:00, confidence not recorded.
  - readme: https://github.com/docker-library/php (fetched 2026-08-28T04:08:33.484897+00:00, sha 3d3b846ae50c)
  - homepage: https://php.net (fetched 2026-08-29T09:16:23.637500+00:00, sha 8e965edd8e3a)
  - site_page: https://www.php.net/docs.php (fetched 2026-08-29T09:16:23.640296+00:00, sha 2ebac32f131e)
  - site_page: https://www.php.net/manual/en/getting-started.php (fetched 2026-08-29T09:16:23.644090+00:00, sha ab6a47e3786e)
  - site_page: https://www.php.net/manual/en/features.php (fetched 2026-08-29T09:16:23.649739+00:00, sha e754abca87dd)
  - site_page: https://www.php.net/manual/en/features.http-auth.php (fetched 2026-08-29T09:16:23.651538+00:00, sha 99a4af7cdb48)
  - site_page: https://www.php.net/manual/en/features.cookies.php (fetched 2026-08-29T09:16:23.654860+00:00, sha e9463556acd1)
  - site_page: https://www.php.net/releases/8.5/index.php (fetched 2026-08-29T09:16:23.642153+00:00, sha f04b3fc2cb55)
  - site_page: https://www.php.net/manual/en/security.cgi-bin.php (fetched 2026-08-29T09:16:23.645782+00:00, sha 50258b7db787)
  - site_page: https://www.php.net/manual/en/security.apache.php (fetched 2026-08-29T09:16:23.647972+00:00, sha b0548a78e295)
- Data as of 2026-08-30T08:39:29.467469+00:00.
