{"id":24926444,"url":"https://github.com/oanhnn/docker-php","last_synced_at":"2025-06-13T02:03:50.686Z","repository":{"id":40358352,"uuid":"151705928","full_name":"oanhnn/docker-php","owner":"oanhnn","description":":+1: Some images base from PHP official images and installed some useful PHP extensions","archived":false,"fork":false,"pushed_at":"2025-06-09T05:18:17.000Z","size":332,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-09T06:24:59.104Z","etag":null,"topics":["docker","docker-image","docker-images","php"],"latest_commit_sha":null,"homepage":"https://ghcr.io/oanhnn/php","language":"Dockerfile","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/oanhnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-05T10:38:33.000Z","updated_at":"2025-06-09T05:18:20.000Z","dependencies_parsed_at":"2024-02-19T06:26:40.154Z","dependency_job_id":"d923b3cd-cb6d-4f5d-9377-4a61ab723d38","html_url":"https://github.com/oanhnn/docker-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oanhnn/docker-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fdocker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fdocker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fdocker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fdocker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oanhnn","download_url":"https://codeload.github.com/oanhnn/docker-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oanhnn%2Fdocker-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259565542,"owners_count":22877346,"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":["docker","docker-image","docker-images","php"],"created_at":"2025-02-02T12:52:17.656Z","updated_at":"2025-06-13T02:03:50.663Z","avatar_url":"https://github.com/oanhnn.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oanhnn/docker-php\n\n[![CI](https://github.com/oanhnn/docker-php/actions/workflows/ci.yml/badge.svg)](https://github.com/oanhnn/docker-php/actions/workflows/ci.yml)\n[![Docker Pulls](https://img.shields.io/docker/pulls/oanhnn/php)](https://hub.docker.com/r/oanhnn/php)\n[![Software License](https://img.shields.io/github/license/oanhnn/docker-php.svg)](LICENSE.md)\n\n## Features\n\n- [x] All images are build from PHP official images.\n- [x] Install some PHP extensions: bcmath, gd, gmp, intl, opcache, pdo_mysql, pdo_pgsql, pcntl, zip, redis, xdebug (disable by default)\n- [x] Publish to [Docker Hub](https://hub.docker.com/r/oanhnn/php) and [GHCR.IO](https://github.com/oanhnn/docker-php/pkgs/container/php)\n\n```shell\n$ docker run --rm oanhnn/php:8.3-cli -m\n[PHP Modules]\nbcmath\nCore\nctype\ncurl\ndate\ndom\nfileinfo\nfilter\nftp\ngd\ngmp\nhash\niconv\nintl\njson\nlibxml\nmbstring\nmysqlnd\nopenssl\npcntl\npcre\nPDO\npdo_mysql\npdo_pgsql\npdo_sqlite\nPhar\nposix\nreadline\nredis\nReflection\nsession\nSimpleXML\nsockets\nsodium\nSPL\nsqlite3\nstandard\ntokenizer\nxml\nxmlreader\nxmlwriter\nZend OPcache\nzip\nzlib\n\n[Zend Modules]\nZend OPcache\n\n```\n\n## Tags.\n\n\u003ctable style=\"border: 1px\"\u003e\n    \u003ctr\u003e\n        \u003cth rowspan=\"2\"\u003eVersion\u003c/th\u003e\n        \u003cth colspan=\"7\"\u003eVariants\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003eapache\u003c/th\u003e\n        \u003cth\u003ecli\u003c/th\u003e\n        \u003cth\u003efpm\u003c/th\u003e\n        \u003cth\u003ezts\u003c/th\u003e\n        \u003cth\u003ecli-alpine\u003c/th\u003e\n        \u003cth\u003efpm-alpine\u003c/th\u003e\n        \u003cth\u003ezts-alpine\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e7.0\u003c/th\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.0/alpine/Dockerfile\" title=\"7.0-alpine\"\u003e7.0-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e7.1\u003c/th\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.1/alpine/Dockerfile\" title=\"7.1-alpine\"\u003e7.1-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e7.2\u003c/th\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.2/alpine/Dockerfile\" title=\"7.2-alpine\"\u003e7.2-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n        \u003ctd\u003e-\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e7.3\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/apache/Dockerfile\" title=\"7.3-apache\"\u003e7.3-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/cli/Dockerfile\" title=\"7.3-cli\"\u003e7.3-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/fpm/Dockerfile\" title=\"7.3-fpm\"\u003e7.3-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/zts/Dockerfile\" title=\"7.3-zts\"\u003e7.3-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/cli-alpine/Dockerfile\" title=\"7.3-cli-alpine\"\u003e7.3-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/fpm-alpine/Dockerfile\" title=\"7.3-fpm-alpine\"\u003e7.3-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.3/zts-alpine/Dockerfile\" title=\"7.3-zts-alpine\"\u003e7.3-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e7.4\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/apache/Dockerfile\" title=\"7.4-apache\"\u003e7.4-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/cli/Dockerfile\" title=\"7.4-cli\"\u003e7.4-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/fpm/Dockerfile\" title=\"7.4-fpm\"\u003e7.4-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/zts/Dockerfile\" title=\"7.4-zts\"\u003e7.4-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/cli-alpine/Dockerfile\" title=\"7.4-cli-alpine\"\u003e7.4-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/fpm-alpine/Dockerfile\" title=\"7.4-fpm-alpine\"\u003e7.4-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/7.4/zts-alpine/Dockerfile\" title=\"7.4-zts-alpine\"\u003e7.4-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e8.0\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/apache/Dockerfile\" title=\"8.0-apache\"\u003e8.0-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/cli/Dockerfile\" title=\"8.0-cli\"\u003e8.0-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/fpm/Dockerfile\" title=\"8.0-fpm\"\u003e8.0-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/zts/Dockerfile\" title=\"8.0-zts\"\u003e8.0-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/cli-alpine/Dockerfile\" title=\"8.0-cli-alpine\"\u003e8.0-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/fpm-alpine/Dockerfile\" title=\"8.0-fpm-alpine\"\u003e8.0-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.0/zts-alpine/Dockerfile\" title=\"8.0-zts-alpine\"\u003e8.0-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e8.1\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/apache/Dockerfile\" title=\"8.1-apache\"\u003e8.1-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/cli/Dockerfile\" title=\"8.1-cli\"\u003e8.1-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/fpm/Dockerfile\" title=\"8.1-fpm\"\u003e8.1-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/zts/Dockerfile\" title=\"8.1-zts\"\u003e8.1-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/cli-alpine/Dockerfile\" title=\"8.1-cli-alpine\"\u003e8.1-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/fpm-alpine/Dockerfile\" title=\"8.1-fpm-alpine\"\u003e8.1-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.1/zts-alpine/Dockerfile\" title=\"8.1-zts-alpine\"\u003e8.1-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e8.2\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/apache/Dockerfile\" title=\"8.2-apache\"\u003e8.2-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/cli/Dockerfile\" title=\"8.2-cli\"\u003e8.2-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/fpm/Dockerfile\" title=\"8.2-fpm\"\u003e8.2-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/zts/Dockerfile\" title=\"8.2-zts\"\u003e8.2-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/cli-alpine/Dockerfile\" title=\"8.2-cli-alpine\"\u003e8.2-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/fpm-alpine/Dockerfile\" title=\"8.2-fpm-alpine\"\u003e8.2-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.2/zts-alpine/Dockerfile\" title=\"8.2-zts-alpine\"\u003e8.2-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e8.3\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/apache/Dockerfile\" title=\"8.3-apache\"\u003e8.3-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/cli/Dockerfile\" title=\"8.3-cli\"\u003e8.3-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/fpm/Dockerfile\" title=\"8.3-fpm\"\u003e8.3-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/zts/Dockerfile\" title=\"8.3-zts\"\u003e8.3-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/cli-alpine/Dockerfile\" title=\"8.3-cli-alpine\"\u003e8.3-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/fpm-alpine/Dockerfile\" title=\"8.3-fpm-alpine\"\u003e8.3-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.3/zts-alpine/Dockerfile\" title=\"8.3-zts-alpine\"\u003e8.3-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003cth\u003e8.4\u003c/th\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/apache/Dockerfile\" title=\"8.4-apache\"\u003e8.4-apache\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/cli/Dockerfile\" title=\"8.4-cli\"\u003e8.4-cli\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/fpm/Dockerfile\" title=\"8.4-fpm\"\u003e8.4-fpm\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/zts/Dockerfile\" title=\"8.4-zts\"\u003e8.4-zts\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/cli-alpine/Dockerfile\" title=\"8.4-cli-alpine\"\u003e8.4-cli-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/fpm-alpine/Dockerfile\" title=\"8.4-fpm-alpine\"\u003e8.4-fpm-alpine\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\u003ca href=\"https://github.com/oanhnn/docker-php/blob/master/8.4/zts-alpine/Dockerfile\" title=\"8.4-zts-alpine\"\u003e8.4-zts-alpine\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n\n## Usage\n\n- Use like with official image\n\n```\ndocker run -d --rm -p 9000:9000 -v $(pwd):/var/www oanhnn/php:8.3-fpm\n```\n\n## Contributing\n\nAll code contributions must go through a pull request and approved by a core developer before being merged. \nThis is to ensure proper review of all the code.\n\nFork the project, create a feature branch, and send a pull request.\n\nIf you would like to help take a look at the [list of issues](https://github.com/oanhnn/docker-php/issues).\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Oanh Nguyen](https://github.com/oanhnn)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanhnn%2Fdocker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foanhnn%2Fdocker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foanhnn%2Fdocker-php/lists"}