{"id":15024344,"url":"https://github.com/rimelek/docker-php-before-2022","last_synced_at":"2025-10-03T22:31:17.503Z","repository":{"id":87423503,"uuid":"62517450","full_name":"rimelek/docker-php-before-2022","owner":"rimelek","description":"MOVED to rimelek/docker-php. PHP images based on the official versions with additional helper scripts","archived":true,"fork":false,"pushed_at":"2023-03-29T20:52:57.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-29T19:23:27.483Z","etag":null,"topics":["deprecated","docker","docker-image","docker-php","php","php56","php7","php71"],"latest_commit_sha":null,"homepage":"https://github.com/rimelek/docker-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/rimelek.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}},"created_at":"2016-07-03T22:22:01.000Z","updated_at":"2023-03-29T20:54:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9af22580-7f6f-4c57-bb5c-4a7246b82f86","html_url":"https://github.com/rimelek/docker-php-before-2022","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-php-before-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-php-before-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-php-before-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimelek%2Fdocker-php-before-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimelek","download_url":"https://codeload.github.com/rimelek/docker-php-before-2022/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235198527,"owners_count":18951503,"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":["deprecated","docker","docker-image","docker-php","php","php56","php7","php71"],"created_at":"2024-09-24T20:00:09.288Z","updated_at":"2025-10-03T22:31:12.215Z","avatar_url":"https://github.com/rimelek.png","language":"Shell","readme":"# README\n\n!!! IMPORTANT !!!: The new repository is https://github.com/rimelek/docker-php\n\nYears ago I made a mistake and pushed the repository in a new namespace instead of using GitHub's \"transfer\" feature so I had two repository with common history. Now I decided to move the project back to the old namespace \"rimelek\". Since both of the repositories have followers, stars or forks, I keep this repository too, but I recommend everyone to use the new one linked above.\n\n---\n\n## Introduction\n\nThis repository contains the source to build multiple PHP versions based on the [official Docker images of PHP](https://hub.docker.com/_/php/).\nFor now, the following versions are supported:\n\n- PHP 5.6 FPM\n- PHP 7.0 FPM\n- PHP 7.1 FPM\n- PHP 7.2 FPM\n- PHP 7.3 FPM\n- PHP 7.4 FPM\n- PHP 8.0 FPM (experimental)\n\nIt makes easier to install an extension without knowing which dependencies you need to install or how you have to configure\nthe dependencies before running the official docker-php-ext-install.\n\nOnly thing you need to do is specifying which extensions you want to be installed. You can also install every supported\nextension if you do not specify any extension to install.\n\nThe \"common\" directory is a collection of files that will be copied to each specific PHP version's directory when you run \"./prepare -s PATH\".\nReplace PATH with the actual path to a Dockerfile. \n\n**Example**\n\n```bash\n./prepare.sh -s 7.4/fpm\n```\n    \n**Tip:**: It is recommended to pull the already [built images](https://hub.docker.com/r/itsziget/php/) from Docker Hub.\n    \n## oci8 and pdo_oci extensions\n\nIf you need to use oci8 and pdo_oci extensions, you have to download some files from Oracle's website. Follow the steps below\nto install the extensions\n\n* Download the Basic and SDK package of Oracle Instant Client from the official source (you need to accept a license): \n[http://www.oracle.com/technetwork/database/features/instant-client/index.html](http://www.oracle.com/technetwork/database/features/instant-client/index.html)\n* Copy the contents of instantclient_xx.x directory from each package into  `\u003cversion\u003e/fpm/opt/oracle/instantclient`\n* You can build the image now using prepare.sh and docker. See in the next chapter.\n\n**Tip:** Faster way is building a custom image from existing images on Docker Hub. \n\n```dockerfile\nFROM itsziget/php:7.4-fpm\n\nCOPY oracle/instantclient /opt/oracle/instantclient\n\nRUN re-php-install-ext oci8 \u0026\u0026 re-php-install-ext pdo_oci\n```\n    \nIn this case copy the contents of \"instantclient\" directory to ./oracle/instantclient \n\nThen you can save the new image into your own private repository.\n\n## Build an image\n\nMake sure the root folder is writable!\n\nInstall all supported extensions:\n\n```bash\n./prepare.sh -s 7.4/fpm\ncd build/7.4/fpm\ndocker build -t myphpimage .\n```\n    \nor install only some specified additional extensions:\n\n```bash\n./prepare.sh -s 7.4/fpm\ncd build/7.4/fpm\ndocker build --build-arg PHP_EXT_GROUP=none PHP_EXT=\"gd bz2\" --build-arg PECL_EXT_GROUP=none -t myphpimage\n```\n\nYou can change 7.4 to any supported version like 5.6, 7.0, 7.1, 7.2 or 7.3\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fdocker-php-before-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimelek%2Fdocker-php-before-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimelek%2Fdocker-php-before-2022/lists"}