{"id":15024313,"url":"https://github.com/byjg/docker-php","last_synced_at":"2025-07-17T07:03:17.140Z","repository":{"id":53525390,"uuid":"74224375","full_name":"byjg/docker-php","owner":"byjg","description":"A complete and small PHP Docker image based on Alpine Linux.","archived":false,"fork":false,"pushed_at":"2025-03-14T15:58:47.000Z","size":400,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:03:05.439Z","etag":null,"topics":["apache","docker","fpm","nginx","php","php56","php7","php7-fpm","php71","php72","php73","php74","php8","php8-fpm"],"latest_commit_sha":null,"homepage":"","language":"Python","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/byjg.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"byjg"}},"created_at":"2016-11-19T17:36:46.000Z","updated_at":"2025-03-14T15:58:51.000Z","dependencies_parsed_at":"2024-10-12T12:20:55.588Z","dependency_job_id":"48b34a5a-32b9-48a3-8cef-49f8794efee5","html_url":"https://github.com/byjg/docker-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byjg/docker-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byjg","download_url":"https://codeload.github.com/byjg/docker-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjg%2Fdocker-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265575439,"owners_count":23790772,"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":["apache","docker","fpm","nginx","php","php56","php7","php7-fpm","php71","php72","php73","php74","php8","php8-fpm"],"created_at":"2024-09-24T20:00:06.866Z","updated_at":"2025-07-17T07:03:17.100Z","avatar_url":"https://github.com/byjg.png","language":"Python","funding_links":["https://github.com/sponsors/byjg"],"categories":[],"sub_categories":[],"readme":"# PHP Docker Images ByJG\n\n[![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com)\n[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/docker-php/)\n[![Build Status](https://github.com/byjg/docker-php/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/byjg/docker-php/actions/workflows/build.yml)\n\n## Overview\n\nA complete, lightweight, and versatile PHP Docker image collection based on Alpine Linux. These images are designed to be small, efficient, and ready to use in various environments.\n\n### Key Features\n\n- **Lightweight**: Based on Alpine Linux, with optimized image sizes (~135-154MB)\n- **Multi-architecture support**: Runs on amd64 (x86_64) and arm64 (Raspberry PI, Graviton)\n- **Multiple PHP versions**: From PHP 5.6 to the latest PHP 8.4\n- **Variety of configurations**: Base, CLI, FPM, FPM-Nginx, and FPM-Apache variants\n- **Pre-installed extensions**: 45+ PHP extensions included in all images\n- **Development tools**: Composer, PHPUnit, PHP Code Sniffer, and more in CLI images\n- **Production-ready**: Optimized for both development and production environments\n\n## Documentation Index\n\n- [Base Image](docs/image-base.md) - Minimal image with 45+ extensions\n- [CLI Image](docs/image-cli.md) - Command-line tools for development\n- [FPM Images](docs/image-fpm.md) - PHP-FPM, Nginx, and Apache variants\n- [Environment Variables](docs/environment.md) - Configuration options\n- [Building Custom Images](docs/building.md) - Create your own images\n- [IDE Integration](docs/ide.md) - Using with your IDE\n- [Dockerfile Reference](docs/dockerfile.md) - Dockerfile details\n- [Tagging Convention](docs/tagging.md) - Understanding image tags\n\n**See full documentation at: [https://opensource.byjg.com/devops/docker-php](https://opensource.byjg.com/devops/docker-php)**\n\nA complete and small PHP Docker image based on Alpine Linux and run on the archictectures\n\n- amd64 (x86_64)\n- arm64 (Raspberry PI, Graviton, etc) - available after February 2021\n\nThe Docker ByJG PHP Images has several bundled images based on PHP in different versions.\n\nThe PHP images are ready to use in:\n\n- Development Environment\n- Production Environment\n- CI/CD environments (like Travis-CI, Circle-CI, Jenkis, Bitbucket Pipelines, and others)\n- [IDE Integration](docs/ide.md)\n\n## PHP Versions Available\n\n| Version | Latest Version | Monthly Builds | Alpine Version |\n|:-------:|:--------------:|:--------------:|:--------------:|\n| **8.4** |   **8.4.5**    |    **yes**     |    **edge**    |\n| **8.3** |   **8.3.18**   |    **yes**     |    **edge**    |\n| **8.2** |   **8.2.28**   |    **yes**     |    **edge**    |\n|   8.1   |     8.1.31     |       -        |      3.19      |      \n|   8.0   |     8.0.30     |       -        |      3.16      |     \n|   7.4   |     7.4.33     |       -        |      3.15      |    \n|   7.3   |     7.3.33     |       -        |      3.12      |   \n|   7.2   |     7.2.33     |       -        |      3.9       |  \n|   7.1   |     7.1.33     |       -        |      3.7       | \n|   7.0   |     7.0.33     |       -        |      3.5       |\n|   5.6   |     5.6.40     |       -        |      3.8       |\n\nNotes:\n- PHP Images with no monthly builds are not updated anymore and there is no support.\n- PHP images using the edge base image are suitable for production. However, they may receive package updates. If you extend these images by adding more packages, those packages may not be available in future updates.\n\n## PHP Images\n\nFive different images for each PHP Version\n\n- [base](docs/image-base.md) - Minimal Image, base for the other\n- [cli](docs/image-cli.md) - PHP with Command Line installed (composer, phpunit, etc)\n- [fpm](docs/image-fpm.md) - PHP with FPM installed\n- [fpm-apache](docs/image-fpm.md) - PHP and Apache using FPM\n- [fpm-nginx](docs/image-fpm.md) - PHP and Nginx using FPM\n\n## Image Tag Convention\n\nSince January 2021 de tag convention is:\n\n```\nbyjg/php:\u003cPHP_VERSION\u003e-\u003cTYPE\u003e[-YYYY.MM]\n```\n\nWhere:\n- PHP_VERSION: It is `\u003cMAJOR\u003e.\u003cMINOR\u003e`, e.g `8.2`\n- TYPE: It is `base`, `cli`,  `fpm`, `fpn-nginx`, `fpm-apache`\n- YYYY: The Year of the Build\n- MM: The month of the build.\n\nThe images without YYYY-MM can be updated to the latest PHP version and new features. \nThe images with YYYY-MM are immutable\n\ne.g.\n\n```\nbyjg/php:8.3-fpm\nbyjg/php:8.3-fpm-2024.10\n```\n\n## Environment variables\n\n[Here](docs/environment.md) a list of environment variables.\n\n \n## Image Sizes\n\nBelow a table with images uncompressed\n\n| Build Type | Uncompressed Size |\n|:-----------|------------------:|\n| base       |            ~135MB |\n| cli        |            ~154MB |\n| fpm        |            ~139MB |\n| fpm-nginx  |            ~154MB |\n| fpm-apache |            ~154MB |\n\n\n## Building your own image\n\nDetailed instructions can be found [here](docs/building.md).\n\n----\n[Open source ByJG](http://opensource.byjg.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjg%2Fdocker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyjg%2Fdocker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjg%2Fdocker-php/lists"}