{"id":15026661,"url":"https://github.com/otherguy/docker-php7-fpm","last_synced_at":"2025-04-09T20:21:04.966Z","repository":{"id":51293998,"uuid":"70574452","full_name":"otherguy/docker-php7-fpm","owner":"otherguy","description":"Docker image for php7-fpm with all the extensions needed to run Laravel 8+, Lumen and other PHP projects.","archived":false,"fork":false,"pushed_at":"2022-04-04T13:41:18.000Z","size":33,"stargazers_count":11,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T22:12:49.840Z","etag":null,"topics":["docker-image","dockerfile","laravel","php","php-docker","php-docker-image","php7-fpm","php74","php74-docker","php74-fpm"],"latest_commit_sha":null,"homepage":"","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/otherguy.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":null,"support":null}},"created_at":"2016-10-11T08:50:58.000Z","updated_at":"2023-12-21T10:39:40.000Z","dependencies_parsed_at":"2022-09-09T07:01:08.906Z","dependency_job_id":null,"html_url":"https://github.com/otherguy/docker-php7-fpm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otherguy%2Fdocker-php7-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otherguy%2Fdocker-php7-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otherguy%2Fdocker-php7-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otherguy%2Fdocker-php7-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otherguy","download_url":"https://codeload.github.com/otherguy/docker-php7-fpm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104161,"owners_count":21048291,"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-image","dockerfile","laravel","php","php-docker","php-docker-image","php7-fpm","php74","php74-docker","php74-fpm"],"created_at":"2024-09-24T20:04:51.701Z","updated_at":"2025-04-09T20:21:04.933Z","avatar_url":"https://github.com/otherguy.png","language":"Dockerfile","readme":"# PHP 7.4 FPM\n\n_All-purpose PHP-FPM 7.4 Docker image that comes with the most popular extensions._\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/otherguy/php7-fpm?style=flat-square)][dockerhub]\n[![Docker Stars](https://img.shields.io/docker/stars/otherguy/php7-fpm?style=flat-square)][dockerhub]\n[![Travis CI](https://img.shields.io/travis/com/otherguy/docker-php7-fpm?style=flat-square)][travis]\n[![GitHub issues](https://img.shields.io/github/issues/otherguy/docker-php7-fpm?style=flat-square)][issues]\n[![MicroBadger Layers](https://img.shields.io/microbadger/layers/otherguy/php7-fpm?style=flat-square)][microbadger]\n[![GitHub stars](https://img.shields.io/github/stars/otherguy/docker-php7-fpm?color=violet\u0026style=flat-square)][stargazers]\n[![MIT License](https://img.shields.io/github/license/otherguy/docker-php7-fpm?color=orange\u0026style=flat-square)][license]\n\n[dockerhub]: https://hub.docker.com/r/otherguy/php7-fpm/\n[travis]: https://travis-ci.com/otherguy/docker-php7-fpm\n[license]: https://tldrlegal.com/license/mit-license\n[microbadger]: https://microbadger.com/images/otherguy/php7-fpm\n[stargazers]: https://github.com/otherguy/php7-fpm/stargazers\n[issues]: https://github.com/otherguy/docker-php7-fpm/issues\n\nDon't worry about building complex Docker images for your [Laravel](https://laravel.com), [Lumen](https://lumen.laravel.com)\nor other PHP 7.4+ applications. Just use this lightweight and convenient image.\n\n    $ docker pull otherguy/php7-fpm:7.4\n\n## 🌈 Quick Start\n\n### Create your Docker image\n\nBase your Docker image on `otherguy/php7-fpm:7.4`, add your project files and you're ready to go!\n\n```Dockerfile\n# Dockerfile\nFROM otherguy/php7-fpm:7.4\n\nCOPY --chown=www-data:www-data . /srv\n```\n\n### Customize PHP settings\n\nIf you want to change the PHP configuration or overwrite some defaults, simply create your own\nconfiguration file, have the filename start with a `z` and add it to the image.\n\n```ini\n# zz-custom.ini\npost_max_size       = 100M\nupload_max_filesize = 100M\n```\n\n```Dockerfile\n# Dockerfile\n...\nCOPY zz-custom.ini /usr/local/etc/php/conf.d/\n...\n```\n\n### Add PHP extensions\n\nIt's simple to add your own extensions to the image!\n\n```Dockerfile\n# Dockerfile\n...\nRUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \\\n \u0026\u0026 pecl install mongodb \\\n \u0026\u0026 docker-php-ext-enable mongodb\n...\n```\n\n## 📚 Description\n\nThis is a docker image for an all-purpose PHP-FPM (PHP Version 7.4) container.  It is based on the `7.4-fpm-alpine`\ntag of the [official PHP Docker image](https://hub.docker.com/_/php/). [Patch version](http://semver.org) upgrades\nare therefore done automatically on build (e.g. `7.4.11` to `7.4.12`) but for minor version upgrades\n(e.g. `7.3.x` to `7.4.x`), a new `Dockerfile` should be created and tagged appropriately.\n\n## 🆕 New and Removed Features\n\nThere are some new features and deprecated modules that made changes to the `Dockerfile` necessary:\n\n* `mcrypt` has been [deprecated in 7.1 and removed in 7.2](http://php.net/manual/en/migration71.deprecated.php) in\n  favor of OpenSSL\n* PHP 7.4 includes many of the extensions that were previously installed manually, so only `gd`, `intl`, `opcache` and\n  PDO are installed through this image\n\n## 🧮 Extensions\n\nThe installed extensions are enough for [Laravel 8 projects](https://laravel.com/docs/8.x/installation) as long as the project\nis using either PostgreSQL, MySQL or SQLite. If you need other database drivers/extensions, please fork this image and submit\na [pull requests](https://github.com/otherguy/docker-php7-fpm/pulls), or simply install it in your own image.\n\nThis is the full list of extensions available to PHP in this image:\n\n* `ctype`\n* `curl`\n* `date`\n* `dom`\n* `fileinfo`\n* `filter`\n* `ftp`\n* `gd`\n* `hash`\n* `iconv`\n* `intl`\n* `json`\n* `libxml`\n* `mbstring`\n* `mysqli`\n* `mysqlnd`\n* `openssl`\n* `pcre`\n* `PDO`\n* `pdo_mysql`\n* `pdo_pgsql`\n* `pdo_sqlite`\n* `Phar`\n* `posix`\n* `readline`\n* `Reflection`\n* `session`\n* `SimpleXML`\n* `sodium`\n* `SPL`\n* `sqlite3`\n* `standard`\n* `tokenizer`\n* `xml`\n* `xmlreader`\n* `xmlwriter`\n* `Zend OPcache`\n* `zip`\n* `zlib`\n\n## 🛠 Building\n\nIn order to build this image yourself, simply run the following command:\n\n    $ docker build -t otherguy/php7-fpm:7.4 .\n\n## 🚧 Contributing\n\n[Pull Requests](https://github.com/otherguy/docker-php7-fpm/pulls) are more than welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotherguy%2Fdocker-php7-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotherguy%2Fdocker-php7-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotherguy%2Fdocker-php7-fpm/lists"}