{"id":14966368,"url":"https://github.com/yiisoft/yii-docker","last_synced_at":"2025-04-09T21:18:25.741Z","repository":{"id":33861162,"uuid":"157858743","full_name":"yiisoft/yii-docker","owner":"yiisoft","description":"Official Docker images suitable for Yii 3.0+","archived":false,"fork":false,"pushed_at":"2025-03-03T12:00:43.000Z","size":207,"stargazers_count":43,"open_issues_count":2,"forks_count":18,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-09T21:18:22.538Z","etag":null,"topics":["docker","hacktoberfest","yii3"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"]}},"created_at":"2018-11-16T11:32:07.000Z","updated_at":"2025-03-15T20:59:06.000Z","dependencies_parsed_at":"2023-12-13T03:37:36.226Z","dependency_job_id":"20e19fff-7047-4121-a723-b89b5a764c19","html_url":"https://github.com/yiisoft/yii-docker","commit_stats":{"total_commits":230,"total_committers":19,"mean_commits":"12.105263157894736","dds":"0.30000000000000004","last_synced_commit":"a667b14d5b0b35690f9c923f1e019373e412c6cc"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111973,"owners_count":21049578,"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","hacktoberfest","yii3"],"created_at":"2024-09-24T13:36:16.918Z","updated_at":"2025-04-09T21:18:25.711Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://yiisoft.github.io/docs/images/yii_logo.svg\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://www.docker.com/wp-content/uploads/2023/08/logo-guide-logos-1.svg\" height=\"80px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eYii 3.x PHP Docker Image\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n**Stable**\n\u003cimg src=\"https://api.travis-ci.com/yiisoft/yii-docker.svg?branch=master\"\u003e\n**Development**\n[![pipeline status](https://gitlab.com/yiisoft/yii-docker/badges/master/pipeline.svg)](https://gitlab.com/yiisoft/yii-docker/commits/master)\n\nThis is the repo of the official [Yii 3.x Framework](https://www.yiiframework.com/) image on [DockerHub](https://hub.docker.com/r/yiisoftware/yii-php/) for PHP.\n\n## About\n\nThese Docker images are built on top of the official PHP Docker image, they contain additional PHP extensions required to run Yii 3.x framework, but no code of the framework itself.\nThe `Dockerfile`(s) of this repository are designed to build from different PHP-versions by using *build arguments*.\n\n### Features\n\n- built from official Docker images\n- all core-framework tests pass\n- includes Xdebug (not loaded by default)\n- ready for handling client-side packages\n- bash auto-completion\n- `fpm-nginx` images with built-in webserver (like Apache)\n\n### Available versions for `yiisoftware/yii-php`\n\nThe following images are built on a *weekly* basis for **arm64** and **amd64**. For regular commits on **master** we only build images for **amd64** suffixed with `-latest`/`-latest-min`.\n\n#### Minimal images\n\n```text\n8-2-apache-min\n8-1-apache-min\n8.0-apache-min\n8.2-fpm-min\n8.1-fpm-min\n8.0-fpm-min\n8.2-fpm-nginx-min\n8.1-fpm-nginx-min\n8.0-fpm-nginx-min\n```\n\n#### Development images, include `npm` and `composer`\n\n```text\n8.2-apache\n8.1-apache\n8.0-apache\n8.2-fpm\n8.1-fpm\n8.0-fpm\n8.2-fpm-nginx\n8.1-fpm-nginx\n8.0-fpm-nginx\n```\n\n#### Deprecated images\n\n```text\n7.4-apache-min\n7.4-fpm-min\n7.4-fpm-nginx-min\n7.4-apache\n7.4-fpm\n7.4-fpm-nginx\n```\n\n## Setup\n\n```shell\ncp .env-dist .env\n```\n\nAdjust the versions in `.env` if you want to build a specific version.\n\n\u003e **Note:** Please make sure to use a matching combination of `DOCKERFILE_FLAVOUR` and `PHP_BASE_IMAGE_VERSION`\n\n## Configuration\n\n- `PHP_ENABLE_XDEBUG` whether to load an enable Xdebug, defaults to `0` (false) *not available in `-min` images*\n- `PHP_USER_ID` (Debian only) user ID, when running commands as webserver (`www-data`), see also [#15](https://github.com/yiisoft/yii2-docker/issues/15)\n- `SUPERVISOR_START_FPM` (nginx-flavor only) whether to start PHP-fpm by supervisor (default: `true`)\n- `SUPERVISOR_START_NGINX`  (nginx-flavor only) whether to start nginx by supervisor (default: `true`)\n\n## Building\n\n```shell\ndocker-compose build\n```\n\n## Testing\n\n```shell\ndocker-compose run --rm php php /tests/requirements.php\n```\n\n### Xdebug\n\nTo enable Xdebug, set `PHP_ENABLE_XDEBUG=1` in .env file\n\nXdebug is configured to call ip `xdebug.remote_host` on `9005` port (not use standard port to avoid conflicts),\nso you have to configure your IDE to receive connections from that ip.\n\nIf you are using macOS, you can fill `xdebug.remote_host` with `host.docker.internal`, due to a network limitation on mac (\u003chttps://docs.docker.com/docker-for-mac/networking/#port-mapping\u003e)\n\n### (macOS) configuration\n\n\u003e xdebug.remote_host=host.docker.internal\n\n## Documentation\n\n- Guide: [English](docs/guide/en/README.md), [Português - Brasil](docs/guide/pt-BR/README.md)\n\nIf you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.\nYou may also check out other [Yii Community Resources](https://www.yiiframework.com/community).\n\n## License\n\nThe Yii 3.x PHP Docker Image is free software. It is released under the terms of the BSD License.\nPlease see [`LICENSE`](./LICENSE.md) for more information.\n\nMaintained by [Yii Software](https://www.yiiframework.com/).\n\n## Support the project\n\n[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective\u0026logoColor=7eadf1\u0026labelColor=555555)](https://opencollective.com/yiisoft)\n\n## Follow updates\n\n[![Official website](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)\n[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter\u0026logoColor=1DA1F2\u0026labelColor=555555?style=flat)](https://twitter.com/yiiframework)\n[![Telegram](https://img.shields.io/badge/telegram-join-1DA1F2?style=flat\u0026logo=telegram)](https://t.me/yii3en)\n[![Facebook](https://img.shields.io/badge/facebook-join-1DA1F2?style=flat\u0026logo=facebook\u0026logoColor=ffffff)](https://www.facebook.com/groups/yiitalk)\n[![Slack](https://img.shields.io/badge/slack-join-1DA1F2?style=flat\u0026logo=slack)](https://yiiframework.com/go/slack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii-docker/lists"}