{"id":20444910,"url":"https://github.com/timo-reymann/php-app","last_synced_at":"2026-04-02T17:07:51.584Z","repository":{"id":64400110,"uuid":"575501357","full_name":"timo-reymann/php-app","owner":"timo-reymann","description":"Docker image for running PHP apps in a single container with nginx and PHP-fpm","archived":false,"fork":false,"pushed_at":"2026-03-28T23:11:08.000Z","size":169,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T01:42:59.792Z","etag":null,"topics":["docker","nginx","php"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/timoreymann/php-app","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/timo-reymann.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["timo-reymann"],"custom":["https://www.buymeacoffee.com/timoreymann","Buy me a coffee"]}},"created_at":"2022-12-07T16:49:28.000Z","updated_at":"2026-03-28T23:11:11.000Z","dependencies_parsed_at":"2024-01-20T10:22:48.412Z","dependency_job_id":"5a0d66af-9598-4e3d-af4b-9399223cef0a","html_url":"https://github.com/timo-reymann/php-app","commit_stats":{"total_commits":90,"total_committers":3,"mean_commits":30.0,"dds":0.6,"last_synced_commit":"18e20a0d8b1f0330ed07ba3a30122544a3bbd3e6"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/timo-reymann/php-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timo-reymann%2Fphp-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timo-reymann%2Fphp-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timo-reymann%2Fphp-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timo-reymann%2Fphp-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timo-reymann","download_url":"https://codeload.github.com/timo-reymann/php-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timo-reymann%2Fphp-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":["docker","nginx","php"],"created_at":"2024-11-15T10:10:01.435Z","updated_at":"2026-04-02T17:07:51.568Z","avatar_url":"https://github.com/timo-reymann.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/timo-reymann","https://www.buymeacoffee.com/timoreymann","Buy me a coffee"],"categories":[],"sub_categories":[],"readme":"php-app\n===\n[![LICENSE](https://img.shields.io/github/license/timo-reymann/php-app)](https://github.com/timo-reymann/php-app/blob/main/LICENSE)\n[![GitHub Release](https://img.shields.io/github/v/tag/timo-reymann/php-app.svg?label=version)](https://github.com/timo-reymann/php-app/releases)\n[![DockerHub](https://img.shields.io/docker/pulls/timoreymann/php-app)](https://hub.docker.com/r/timoreymann/php-app)\n[![Renovate](https://img.shields.io/badge/renovate-enabled-green?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNjkgMzY5Ij48Y2lyY2xlIGN4PSIxODkuOSIgY3k9IjE5MC4yIiByPSIxODQuNSIgZmlsbD0iI2ZmZTQyZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUgLTYpIi8+PHBhdGggZmlsbD0iIzhiYjViNSIgZD0iTTI1MSAyNTZsLTM4LTM4YTE3IDE3IDAgMDEwLTI0bDU2LTU2YzItMiAyLTYgMC03bC0yMC0yMWE1IDUgMCAwMC03IDBsLTEzIDEyLTktOCAxMy0xM2ExNyAxNyAwIDAxMjQgMGwyMSAyMWM3IDcgNyAxNyAwIDI0bC01NiA1N2E1IDUgMCAwMDAgN2wzOCAzOHoiLz48cGF0aCBmaWxsPSIjZDk1NjEyIiBkPSJNMzAwIDI4OGwtOCA4Yy00IDQtMTEgNC0xNiAwbC00Ni00NmMtNS01LTUtMTIgMC0xNmw4LThjNC00IDExLTQgMTUgMGw0NyA0N2M0IDQgNCAxMSAwIDE1eiIvPjxwYXRoIGZpbGw9IiMyNGJmYmUiIGQ9Ik04MSAxODVsMTgtMTggMTggMTgtMTggMTh6Ii8+PHBhdGggZmlsbD0iIzI1YzRjMyIgZD0iTTIyMCAxMDBsMjMgMjNjNCA0IDQgMTEgMCAxNkwxNDIgMjQwYy00IDQtMTEgNC0xNSAwbC0yNC0yNGMtNC00LTQtMTEgMC0xNWwxMDEtMTAxYzUtNSAxMi01IDE2IDB6Ii8+PHBhdGggZmlsbD0iIzFkZGVkZCIgZD0iTTk5IDE2N2wxOC0xOCAxOCAxOC0xOCAxOHoiLz48cGF0aCBmaWxsPSIjMDBhZmIzIiBkPSJNMjMwIDExMGwxMyAxM2M0IDQg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LTMgMy03IDQtMTEgNHptLTM5LTc2Yy0xIDAtMyAwLTQgMmwtOCA3Yy0yIDMtMiA3IDAgOWw0NyA0N2E2IDYgMCAwMDkgMGw3LThjMy0yIDMtNiAwLTlsLTQ2LTQ2Yy0yLTItMy0yLTUtMnoiLz48L3N2Zz4=)](https://renovatebot.com)\n[![Continuous build and release docker image](https://github.com/timo-reymann/php-app/actions/workflows/main.yml/badge.svg)](https://github.com/timo-reymann/php-app/actions/workflows/main.yml)\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg width=\"300\" src=\"https://github.com/timo-reymann/php-app/raw/main/.github/images/logo.png\"\u003e\n    \u003cbr /\u003e\n    Docker image for running PHP apps in a single container with nginx and PHP-fpm\n\u003c/p\u003e\n\n## Features\n- Running as non-root\n- Run PHP apps with secure defaults\n\n## Requirements\n- [Docker](https://docs.docker.com/get-docker/)\n\n## Usage\n\n### Basic\n\nFor basic usage with no further extensions, you just copy your sources to /app\n\n```Dockerfile\nFROM timoreymann/php-app\nCOPY --chown=application:application ./code /app\n```\n\n### Build your image with sources and install composer dependencies\n\nWhen you use composer for external dependencies you can easily install them in the build process.\n\nThe `composer-install` script downloads the installer from GitHub, installs the depencies and removes the phar file.\n\n```Dockerfile\nFROM timoreymann/php-app\nWORKDIR /app\nCOPY --chown=application:application ./code ./\nRUN composer-install\n```\n\n### Configure index.php for PHP-based routing\n\nWhen you build a modern web app with PHP, chances are high that you will have routing within your index.php.\nTo make it work, nginx needs to route all requests to the index.php, if the file does not exist in the webroot (e.g. assets).\n\n```Dockerfile\nFROM timoreymann/php-app\nWORKDIR /app\nCOPY --chown=application:application ./code ./\nRUN composer-install \u0026\u0026 configure-index-rewrite\n```\n\n## Documentation\n\n### Components\nThe image consists of:\n\n- multirun - Small util for executing multiple processes with proper signal handling\n- PHP 8 FPM - Execution of PHP files\n- nginx - Serve evaluated files from FPM\n\nPHP 8 extensions that are common are also pre-installed:\n\n- curl\n- ctype\n- dom\n- freetype\n- gd\n- jpeg\n- mysqli\n- mbstring\n- opcache\n- openssl\n- pdo\n- pdo_mysql\n- phar\n- simplexml\n- xml\n- zip\n\n### Ports\n- 8080: HTTP-Server\n\n## Contributing\n\nI love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:\n\n- Reporting a bug\n- Discussing the current state of the configuration\n- Submitting a fix\n- Proposing new features\n- Becoming a maintainer\n\nTo get started please read the [Contribution Guidelines](./CONTRIBUTING.md).\n\n## Development\n\n### Requirements\n- [Docker](https://docs.docker.com/get-docker/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimo-reymann%2Fphp-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimo-reymann%2Fphp-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimo-reymann%2Fphp-app/lists"}