{"id":15014406,"url":"https://github.com/scaffoldeducation/php8","last_synced_at":"2026-02-26T19:32:15.726Z","repository":{"id":226597500,"uuid":"765832625","full_name":"scaffoldeducation/php8","owner":"scaffoldeducation","description":"Docker image with php-fpm 8.0 running on Alpine Linux 3.16 with MongoDB extension installed.","archived":false,"fork":false,"pushed_at":"2024-12-18T20:08:00.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T08:07:14.466Z","etag":null,"topics":["docker","fpm","nginx","phan","php8","phpcs","phpstan","phpunit","production","quality"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scaffoldeducation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-03-01T17:52:52.000Z","updated_at":"2024-12-18T20:08:04.000Z","dependencies_parsed_at":"2024-09-30T08:01:23.233Z","dependency_job_id":"d8a0ac98-5b14-40b6-86bd-ac8ec045f0ba","html_url":"https://github.com/scaffoldeducation/php8","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"be8b6288ec0116993ba65d5bacc598455003c080"},"previous_names":["scaffoldeducation/php8"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scaffoldeducation/php8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scaffoldeducation","download_url":"https://codeload.github.com/scaffoldeducation/php8/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29868529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","fpm","nginx","phan","php8","phpcs","phpstan","phpunit","production","quality"],"created_at":"2024-09-24T19:45:35.543Z","updated_at":"2026-02-26T19:32:15.705Z","avatar_url":"https://github.com/scaffoldeducation.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/scaffoldeducation/php8/raw/main/.github/docker-php.png\" width=\"198\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eScaffold PHP 8 Docker Image\u003c/h1\u003e\n\n\u003cbr\u003e\n\nA Docker image created on top of [**php-fpm 8.0** official image](https://hub.docker.com/_/php) running on Alpine 3.16. It is a multi-environment/multi-purpose image that has several PHP extensions installed, such as MongoDB and Xdebug for example.\n\nThe final size of the images is considerably small if you take into account the content of each image:\n\n```\nscaffoldeducation/php8:fpm-dev          277MB\nscaffoldeducation/php8:fpm-prod         277MB\nscaffoldeducation/php8:nginx-fpm-dev    321MB\nscaffoldeducation/php8:nginx-fpm-prod   321MB\nscaffoldeducation/php8:quality          341MB\n```\n\n\u003cbr\u003e\n\n\u003e Based on [**kooldev/php**](https://github.com/kool-dev/docker-php) docker image\n\u003e _from [Firework Web](https://github.com/fireworkweb)_\n\n\u003cbr\u003e\n\n**Summary**\n\n\u003c!-- TOC --\u003e\n\n- [Usage](#usage)\n- [Tags](#tags)\n- [Contents](#contents)\n  - [Core](#core)\n  - [Tools](#tools)\n  - [Libs](#libs)\n  - [PHP Extensions](#php-extensions)\n  - [Nginx best practices](#nginx-best-practices)\n  - [Quality Tools](#quality-tools)\n- [Check versions](#check-versions)\n- [TODO](#todo)\n\n\u003c!-- /TOC --\u003e\n\n\u003cbr\u003e\n\n## Usage\n\n```Dockerfile\nFROM scaffoldeducation/php8:fpm-dev\nFROM scaffoldeducation/php8:fpm-prod\nFROM scaffoldeducation/php8:nginx-fpm-dev\nFROM scaffoldeducation/php8:nginx-fpm-prod\nFROM scaffoldeducation/php8:quality\n```\n\n\u003cbr\u003e\n\n## Tags\n\n\u003cbr\u003e\n\n| Tag                  | Description                                                                                        |\n|----------------------|----------------------------------------------------------------------------------------------------|\n| **`fpm-dev`**        | it has a lot of extensions installed, but not `opcache`                                            |\n| **`fpm-prod`**       | it has everything from `fpm-dev` except `xdebug` and it includes `opcache`                         |\n| **`nginx-fpm-dev`**  | based on `fpm-dev`, it has nginx installed with SSL support                                        |\n| **`nginx-fpm-prod`** | same above but based on `fpm-prod`                                                                 |\n| **`quality`**        | it descends from `fpm-dev` too but its main purpose is to run [code quality tools](#quality-tools) |\n\n\u003cbr\u003e\n\n## Contents\n\n\u003cbr\u003e\n\n### Core\n\n- Alpine Linux `3.16`\n- php-fpm `8.0.27`\n- nginx `1.22.1`\n\n\u003cbr\u003e\n\n### Tools\n\n- dockerize `0.7.0`\n- supervisor `0.6.3`\n- composer `2`\n\n\u003cbr\u003e\n\n### Libs\n\n- **dependencies**: `bash` `freetype` `ghostscript` `gifsicle` `icu` `imagemagick` `jpegoptim` `less` `libjpeg-turbo` `libldap` `libpng` `libpq` `libzip-dev` `openssh-client` `optipng` `pngquant` `procps` `shadow` `su-exec`\n\n- **build-dependencies**: `freetype-dev` `icu-dev` `imagemagick-dev` `libedit-dev` `libjpeg-turbo-dev` `libpng-dev` `libxml2-dev` `linux-headers` `oniguruma-dev` `openldap-dev` `postgresql-dev`\n\n\u003cbr\u003e\n\n### PHP Extensions\n\n- **`mysqli`** **`mongodb`** **`redis`** **`xdebug`** `bcmath` `calendar` `exif` `gd` `imagick` `intl` `ldap` `mbstring` `opcache` `pcntl` `pdo` `pdo_mysql` `pdo_pgsql` `soap` `sockets` `xml` `zip`\n\n\u003cbr\u003e\n\n### Nginx best practices\n\n- **`h5bp`** `3.3.0` for nginx performance and security\n\n\u003cbr\u003e\n\n### Quality Tools\n\n- **`phan`** `5.4.2`\n- **`phpcpd`** `6.0.3`\n- **`phpcs`** `3.7.2`\n- **`php-cs-fixer`** `3.40.0`\n- **`phpmd`** `2.14.1`\n- **`phpstan`** `1.10.45`\n- **`phpunit`** `9.6.13`\n\n\u003cbr\u003e\n\n## Check versions\n\n```sh\nphp --ri imagick  # 3.7.0\nphp --ri mongodb  # 1.17.0\nphp --ri pcov     # 1.0.11\nphp --ri redis    # 6.0.2\nphp --ri xdebug   # 3.2.2\n```\n\n\u003cbr\u003e\n\n## TODO\n\n- [ ] Allow customize versions of PECL extensions\n- [ ] Write tests for SSL support in nginx\n\n\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaffoldeducation%2Fphp8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaffoldeducation%2Fphp8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaffoldeducation%2Fphp8/lists"}