{"id":15663861,"url":"https://github.com/chrisb9/php8-xdebug","last_synced_at":"2025-05-06T19:43:46.473Z","repository":{"id":55628495,"uuid":"280714395","full_name":"ChrisB9/php8-xdebug","owner":"ChrisB9","description":"PHP 8.0 for development and production usage. With nginx, brotli, xdebug, JIT and more...","archived":false,"fork":false,"pushed_at":"2021-02-04T19:13:37.000Z","size":123,"stargazers_count":16,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T02:13:58.032Z","etag":null,"topics":["brotli","composer","docker","nginx","pcov","php","php-cli","php8","xdebug"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/chrisb9/php8","language":"Dockerfile","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/ChrisB9.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}},"created_at":"2020-07-18T18:21:09.000Z","updated_at":"2023-08-14T09:36:57.000Z","dependencies_parsed_at":"2022-08-15T04:50:45.889Z","dependency_job_id":null,"html_url":"https://github.com/ChrisB9/php8-xdebug","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/ChrisB9%2Fphp8-xdebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisB9%2Fphp8-xdebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisB9%2Fphp8-xdebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisB9%2Fphp8-xdebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisB9","download_url":"https://codeload.github.com/ChrisB9/php8-xdebug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252756021,"owners_count":21799412,"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":["brotli","composer","docker","nginx","pcov","php","php-cli","php8","xdebug"],"created_at":"2024-10-03T13:40:12.544Z","updated_at":"2025-05-06T19:43:46.450Z","avatar_url":"https://github.com/ChrisB9.png","language":"Dockerfile","readme":"![CI](https://github.com/ChrisB9/php8-xdebug/workflows/CI/badge.svg?branch=main)\n\n# PHP 8.0 for development and production\n\n\u003e **Note**:  \n\u003e This image is transitioning from a simple dev image to a more configurable and extensible image  \n\u003e Therefore it is currently being pushed into two different docker repositories:  \n\u003e (old:) [https://hub.docker.com/r/chrisb9/php8-nginx-xdebug](https://hub.docker.com/r/chrisb9/php8-nginx-xdebug)  \n\u003e (new:) [https://hub.docker.com/r/chrisb9/php8](https://hub.docker.com/r/chrisb9/php8)  \n\n## The Images:\n\nThere are three image configurations in two different types:\n\n| Image Type | Image Variant | With nginx |\n|:----------:|:-------------:|:----------:|\n| Alpine     | dev and prod  |     yes    |\n| Debian     | dev and prod  |     yes    |\n| CLI        | dev and prod  |      no    |\n\n### current features\n\n- **nginx based image:** nginx with brotli and http2 enabled\n- **dev image:** php 8.0 ✨ (with xdebug, opcache, ffi, and jit enabled by default)\n- **prod image:** php 8.0 ✨ (with opcache, and jit enabled by default)\n- **dev image:** xdebug 3.0 (set to profile, debug and develop-mode)\n- **dev image:** pcov\n- composer v2.0 (composer 1.0 has been removed)\n- bash (with auto-completion extension and colored)\n- webp and image-optimizers\n- mariadb support\n- **cli image**: no fpm and no nginx preinstalled - this is your smaller variant, not based on alpine (yet)\n\nplanned:\n- mongodb support\n- apache-based image\n- easier extension installation\n- tideways profiler with perf-tools enabled\n\nThis repository does only provide Dockerfiles for php 8.0 and upwards.  \nIf there is enough traction, I might add PHP 7.4 too (or feel free to add it)\n\n### docker-socket\n\nIf docker socket has been mounted as a volume into the container,  \nthen each startup checks the availability of the docker command and if not available installs it.\n\u003e Note: This is currently only available in alpine images: WIP\n\n## xdebug settings:\n\nSome xdebug settings have been preconfigured, such as:\n- `xdebug.mode=profile,develop,coverage`\n- `xdebug.client_port=9003`\n- `xdebug.discover_client_host=1`\n- `xdebug.idekey=PHPSTORM`\n\nThrough the environment-variable `XDEBUG_HOST` the client_host can be changed on login\n\n### xdebug tools:\n- `xdebug-enable` enabled xdebug and restarts php\n- `xdebug-disable` disables xdebug and restarts php\n\n## testing this dockerfile:\n\njust run `git clone \u0026\u0026 docker-compose up -d` \u003cbr /\u003e\nthen open up your browser and go to this container.\n\nin the app-folder are two files index.php and Test.php.\nThey are meant as a playground to test the newest features of php 8.0\n\n## Contributing\n\ntodo...\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisb9%2Fphp8-xdebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisb9%2Fphp8-xdebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisb9%2Fphp8-xdebug/lists"}