{"id":24701880,"url":"https://github.com/scaffoldeducation/php","last_synced_at":"2026-04-11T14:31:59.280Z","repository":{"id":271942836,"uuid":"862575995","full_name":"scaffoldeducation/php","owner":"scaffoldeducation","description":"Docker image with php-fpm running on Alpine Linux with extensions installed and support for JPG, PNG and WebP image formats.","archived":false,"fork":false,"pushed_at":"2025-01-20T23:45:54.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T01:49:58.290Z","etag":null,"topics":["alpine","docker","jpg","mongodb","opcache","php","php8","png","redis","webp","xdebug"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/scaffoldeducation/php","language":"Shell","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-09-24T20:40:25.000Z","updated_at":"2025-01-20T23:45:57.000Z","dependencies_parsed_at":"2025-06-25T01:41:26.056Z","dependency_job_id":"4ac34339-ca1a-4322-bae7-453d530d20f3","html_url":"https://github.com/scaffoldeducation/php","commit_stats":null,"previous_names":["scaffoldeducation/php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scaffoldeducation/php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scaffoldeducation","download_url":"https://codeload.github.com/scaffoldeducation/php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaffoldeducation%2Fphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31684523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["alpine","docker","jpg","mongodb","opcache","php","php8","png","redis","webp","xdebug"],"created_at":"2025-01-27T05:29:30.162Z","updated_at":"2026-04-11T14:31:59.217Z","avatar_url":"https://github.com/scaffoldeducation.png","language":"Shell","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 Education PHP\u003c/h1\u003e\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\nThis is a Docker image created on top of [**php** official image](https://hub.docker.com/_/php) running on Alpine. It is a multi-environment/multi-purpose image that has several PHP extensions installed, such as MongoDB and Xdebug for example.\n\u003e For complete list of dependencies, see the [**Contents**](#contents) section.\n\n\u003cbr\u003e\n\n\u003c!-- TOC --\u003e\n\n- [Usage](#usage)\n- [Tags](#tags)\n- [Contents](#contents)\n  - [Features](#features)\n  - [Core](#core)\n  - [Libs](#libs)\n  - [PHP Extensions](#php-extensions)\n  - [Quality Tools](#quality-tools)\n- [Development](#development)\n- [Vulnerabilities](#vulnerabilities)\n\n\u003c!-- /TOC --\u003e\n\n\u003cbr\u003e\n\n## Usage\n\n```Dockerfile\nFROM scaffoldeducation/php:latest\nFROM scaffoldeducation/php:\u003cTAG\u003e\n```\n\n\u003e Notice that `scaffoldeducation/php:latest` will generate the same image as `scaffoldeducation/php:\u003cLATEST_MAJOR\u003e-prod` tag.\n\n\u003cbr\u003e\n\n## Tags\n\n\u003cbr\u003e\n\n\u003e `Source code at`  \n\u003e [**github.com/scaffoldeducation/php**](https://github.com/scaffoldeducation/php)\n\n\u003cbr\u003e\n\n- `latest`, `8`, `8-prod`, `8.2`, `8.2-prod`, `8.2.26-prod`\n- `8.2-dev`, `8.2.26-dev`\n- `8.1`, `8.1-prod`, `8.1.31-prod`\n- `8.1-dev`, `8.1.31-dev`\n- `8.0`, `8.0-prod`, `8.0.30-prod`\n- `8.0-dev`, `8.0.30-dev`\n\n\u003cbr\u003e\n\n\u003e **Warning**: It's not recommended to use 8.0 tags due to security vulnerabilities.\n\n\u003e **Note**: We'll add PHP 8.3 and 8.4 in future releases.\n\n\u003cbr\u003e\n\n## Contents\n\n\u003cbr\u003e\n\n### Features\n\n- Supports JPG, PNG and WebP image formats\n- Xdebug for debugging on dev environment\n- Support for MongoDB and Redis\n\n\u003cbr\u003e\n\n### Core\n\n- Alpine Linux\n- php\n- composer\n\n\u003cbr\u003e\n\n### Libs\n\n- **system**\n    ```\n    bash\n    freetype\n    gettext\n    ghostscript\n    gifsicle\n    icu\n    imagemagick\n    jpegoptim\n    less\n    libjpeg-turbo\n    libldap\n    libpng\n    libpq\n    libzip-dev\n    openssh-client\n    optipng\n    pngquant\n    procps\n    shadow\n    su-exec\n    ```\n\n- **dependencies**\n    ```\n    freetype-dev\n    icu-dev\n    imagemagick-dev\n    libedit-dev\n    libjpeg-turbo-dev\n    libpng-dev\n    libwebp-dev\n    libwebp-tools\n    libxml2-dev\n    linux-headers\n    oniguruma-dev\n    openldap-dev\n    ```\n\n\u003cbr\u003e\n\n### PHP Extensions\n\n- **`mysqli`**\n- **`mongodb`**\n- **`redis`**\n- **`xdebug`** (only dev)\n- `bcmath`\n- `calendar`\n- `exif`\n- `gd`\n- `imagick`\n- `intl`\n- `ldap`\n- `mbstring`\n- `opcache` (only prod)\n- `pcntl`\n- `pdo`\n- `pdo_mysql`\n- `soap`\n- `sockets`\n- `xml`\n- `zip`\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## Development\n\nTo include new features or fix some bugs, you can create a PR of your changes to this repository. You can test your changes locally with:\n\n```sh\ntests/pipeline.sh\n```\n\nin the root of the project. It'll run many build and test steps for each version. You can also run these scripts manually and independently. The pipeline script creates logs in `logs/pipeline.log` file.\n\n\u003cbr\u003e\n\n## Vulnerabilities\n\nThe images are checked for vulnerabilities with `trivy`:\n```sh\ntrivy image scaffoldeducation/php:8.2.27-prod --scanners vuln\n2025-01-10T18:58:20-03:00\tINFO\t[vuln] Vulnerability scanning is enabled\n2025-01-10T18:58:20-03:00\tINFO\tDetected OS\tfamily=\"alpine\" version=\"3.21.2\"\n2025-01-10T18:58:20-03:00\tWARN\tThis OS version is not on the EOL list\tfamily=\"alpine\" version=\"3.21\"\n2025-01-10T18:58:20-03:00\tINFO\t[alpine] Detecting vulnerabilities...\tos_version=\"3.21\" repository=\"3.21\" pkg_num=140\n2025-01-10T18:58:20-03:00\tINFO\tNumber of language-specific files\tnum=0\n\nscaffoldeducation/php:8.2.27-prod (alpine 3.21.2)\n\nTotal: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)\n```\n\n\u003cbr\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaffoldeducation%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaffoldeducation%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaffoldeducation%2Fphp/lists"}