{"id":42852096,"url":"https://github.com/dnj/php-alpine","last_synced_at":"2026-01-30T12:07:40.293Z","repository":{"id":43754943,"uuid":"415541424","full_name":"dnj/php-alpine","owner":"dnj","description":"Yet Another PHP + Alpine Docker Image.","archived":false,"fork":false,"pushed_at":"2024-10-27T15:25:13.000Z","size":139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-27T17:54:15.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dnj.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}},"created_at":"2021-10-10T09:34:43.000Z","updated_at":"2024-10-27T15:25:17.000Z","dependencies_parsed_at":"2024-09-09T09:37:02.523Z","dependency_job_id":null,"html_url":"https://github.com/dnj/php-alpine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnj/php-alpine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Fphp-alpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Fphp-alpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Fphp-alpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Fphp-alpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnj","download_url":"https://codeload.github.com/dnj/php-alpine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnj%2Fphp-alpine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28912306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T11:55:24.701Z","status":"ssl_error","status_checked_at":"2026-01-30T11:54:13.194Z","response_time":66,"last_error":"SSL_read: 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":[],"created_at":"2026-01-30T12:07:39.684Z","updated_at":"2026-01-30T12:07:40.282Z","avatar_url":"https://github.com/dnj.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP-Alpine\nPHP running on alpine base Docker Image with or without Nginx 🐳\n\n\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/dnj/php-alpine/build-docker.yml?style=for-the-badge)\n[![LICENSE](https://img.shields.io/github/license/dnj/php-alpine.svg?style=for-the-badge)](https://github.com/dnj/php-alpine/blob/master/LICENSE)\n[![Stars Count](https://img.shields.io/github/stars/dnj/php-alpine.svg?style=for-the-badge)](https://github.com/dnj/php-alpine/stargazers)\n[![Forks Count](https://img.shields.io/github/forks/dnj/php-alpine.svg?style=for-the-badge)](https://github.com/dnj/php-alpine/network/members)\n[![Watchers Count](https://img.shields.io/github/watchers/dnj/php-alpine.svg?style=for-the-badge)](https://github.com/dnj/php-alpine/watchers)\n[![Issues Count](https://img.shields.io/github/issues/dnj/php-alpine.svg?style=for-the-badge)](https://github.com/dnj/php-alpine/issues)\n[![Pull Request Count](https://img.shields.io/github/issues-pr/dnj/php-alpine.svg?style=for-the-badge)](https://github.com/dnj/php-alpine/pulls)\n[![Follow](https://img.shields.io/github/followers/dnj.svg?style=for-the-badge\u0026label=Follow\u0026maxAge=2592000)](https://github.com/dnj)\n\n![SIZE](https://i.imgur.com/KifCewS.png)\n\n## Pull it from Github Registry\nTo pull the docker image:\n```bash\ndocker pull ghcr.io/dnj/php-alpine:8.3-mysql-nginx\n```\n\n## Usage\nTo run from current dir\n```bash\ndocker run -v $(pwd):/var/www/html -p 80:80 ghcr.io/dnj/php-alpine:8.3-mysql-nginx\n```\n\n## What's Included\n - [Composer](https://getcomposer.org/) ( v2 - updated )\n - [Tasker](https://github.com/adhocore/gronx) instead of CRON\n - [Go-Supervisor](https://github.com/QPod/supervisord) \n\n## Other Details\n- Alpine base image\n\n## PHP Extension\n- opcache\n- mysqli or pgsql\n- pdo \n- pdo_mysql or pdo_pgsql\n- sockets\n- json\n- intl\n- gd\n- xml\n- zip\n- bz2\n- pcntl\n- bcmath\n- inotify\n- redis\n- memcached\n- exif\n- dom\n- soap\n- ssh2\n\n## Adding other PHP Extension\nYou can add additional PHP Extensions by running `docker-ext-install` command. Don't forget to install necessary dependencies for required extension.\n```bash\nFROM ghcr.io/dnj/php-alpine:8.3-mysql-nginx\nRUN docker-php-ext-install xdebug\n```\n\n## Adding a cronjob\n```bash\nFROM ghcr.io/dnj/php-alpine:8.3-mysql-nginx\necho '0 * * * * /usr/local/bin/php  /var/www/artisan schedule:run \u003e\u003e /dev/null 2\u003e\u00261' \u003e\u003e /etc/crontab\n```\n \n## Adding custom Supervisor config\nYou can add your own Supervisor config inside `/etc/supervisor.d/`. File extension needs to be `*.ini`. By default this image added `nginx`, `php-fpm` and `taker` process in supervisor. \n\nE.g: For a nodejs program you can make file `my-websocket-app.ini`\n```ini\n[program:my-websocket-app]\nprocess_name=%(program_name)s\ncommand=node /app/socket.js\nautostart=true\nautorestart=true\nredirect_stderr=true\n```\nOn your Docker image\n```bash\nFROM ghcr.io/dnj/php-alpine:latest\nADD my-websocket-app.ini /etc/supervisor.d/\n```\nFor more details please refrer to [QPod/supervisord](https://github.com/QPod/supervisord/blob/main/doc/doc-config.md) documentions.\n\n\n## Bug Reporting\n\nIf you find any bugs, please report it by submitting an issue on our [issue page](https://github.com/dnj/php-alpine/issues) with a detailed explanation. Giving some screenshots would also be very helpful.\n\n## Feature Request\n\nYou can also submit a feature request on our [issue page](https://github.com/dnj/php-alpine) or [discussions](https://github.com/dnj/php-alpine/discussions) and we will try to implement it as soon as possible.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnj%2Fphp-alpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnj%2Fphp-alpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnj%2Fphp-alpine/lists"}