{"id":32486289,"url":"https://github.com/tbreuss/php-web-server","last_synced_at":"2025-10-27T05:42:10.146Z","repository":{"id":320150184,"uuid":"1080968404","full_name":"tbreuss/php-web-server","owner":"tbreuss","description":"Docker image providing a lightweight PHP development environment using PHP's built-in web server.","archived":false,"fork":false,"pushed_at":"2025-10-26T08:17:42.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T09:20:31.852Z","etag":null,"topics":["docker","docker-alpine","php","php-builtin-server","php-web-server"],"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/tbreuss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-22T05:59:33.000Z","updated_at":"2025-10-26T08:17:46.000Z","dependencies_parsed_at":"2025-10-26T09:20:33.436Z","dependency_job_id":null,"html_url":"https://github.com/tbreuss/php-web-server","commit_stats":null,"previous_names":["tbreuss/php-built-in-server","tbreuss/php-web-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tbreuss/php-web-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-web-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-web-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-web-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-web-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbreuss","download_url":"https://codeload.github.com/tbreuss/php-web-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-web-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281222745,"owners_count":26464003,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","docker-alpine","php","php-builtin-server","php-web-server"],"created_at":"2025-10-27T05:42:09.318Z","updated_at":"2025-10-27T05:42:10.138Z","avatar_url":"https://github.com/tbreuss.png","language":"Dockerfile","readme":"# Docker Image using PHP's built-in Web Server\n\nThis Docker image provides a lightweight PHP development environment using PHP's built-in web server.\nBased on the official Alpine PHP image, it's ideal for quickly spinning up ad hoc projects.\n\n## Supported PHP Versions\n\n- 8.2\n- 8.3\n- 8.4\n\nOlder versions should also work.\n\n## Build Image\n\nBuild Docker image based on the latest supported PHP version.\n\n    docker build -t php:8.4 https://github.com/tbreuss/php-web-server.git\n\nOptionally, you can also use an older PHP version.\n\n    docker build --build-arg PHP_VERSION=8.2 -t php:8.2 https://github.com/tbreuss/php-web-server.git\n    docker build --build-arg PHP_VERSION=8.3 -t php:8.3 https://github.com/tbreuss/php-web-server.git\n\n## Apply Image\n\nStart your project as follows:\n\n    docker run --rm -v .:/app -p 8888:8888 php:8.4\n\nIf you have a specific document root directory:\n\n    project/\n    ├─ your-code/\n    └─ web/\n        └─ index.php\n\nThen you can start your project as follows:\n\n    docker run --rm -v .:/app -p 8888:8888 php:8.4 php -S 0.0.0.0:8888 -t /app/web\n\nAnd if you want to use Xdebug, here's how to do it:\n\n    docker run --rm -e XDEBUG_CONFIG=\"client_host=172.17.0.1\" -e XDEBUG_MODE=debug -e XDEBUG_SESSION_START=true -v .:/app -p 8888:8888 php:8.4 php -S 0.0.0.0:8888 -t /app/web\n\nNote: On macOS, the `client_host` setting should be `host.docker.internal`.\n\nTo start the container with an interactive terminal session, run the following command:\n\n    docker run --rm -it -v .:/app php:8.4 ash\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbreuss%2Fphp-web-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbreuss%2Fphp-web-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbreuss%2Fphp-web-server/lists"}