yiisoft/yii-docker
yiisoft/yii-docker has 46 GitHub stars and 17 forks. Star changes are not measured yet. Last checked 2026-11-14 00:49 UTC. Last push 2026-11-12.
可以做什么
- built from official Docker images
- all core-framework tests pass
- includes Xdebug (not loaded by default)
- ready for handling client-side packages
实测星标增长
- 24小时
- 正在收集历史
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
Official Docker images suitable for Yii 3.0+
开发工具README.md
原文Yii 3.x PHP Docker Image
This is the repo of the official Yii 3.x Framework image on DockerHub for PHP.
About
These 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.
The Dockerfile(s) of this repository are designed to build from different PHP-versions by using build arguments.
Features
- built from official Docker images
- all core-framework tests pass
- includes Xdebug (not loaded by default)
- ready for handling client-side packages
- bash auto-completion
fpm-nginximages with built-in webserver (like Apache)
Available versions for yiisoftware/yii-php
The 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.
Minimal images
8-4-apache-min
8-3-apache-min
8-2-apache-min
8-1-apache-min
8.4-fpm-min
8.3-fpm-min
8.2-fpm-min
8.1-fpm-min
8.4-fpm-nginx-min
8.3-fpm-nginx-min
8.2-fpm-nginx-min
8.1-fpm-nginx-min
Development images, include npm and composer
8.4-apache
8.3-apache
8.2-apache
8.1-apache
8.4-fpm
8.3-fpm
8.2-fpm
8.1-fpm
8.4-fpm-nginx
8.3-fpm-nginx
8.2-fpm-nginx
8.1-fpm-nginx
Deprecated versions
7.4
8.0
Setup
cp .env-dist .env
Adjust the versions in .env if you want to build a specific version.
Note: Please make sure to use a matching combination of
DOCKERFILE_FLAVOURandPHP_BASE_IMAGE_VERSION
Configuration
PHP_ENABLE_XDEBUGwhether to load an enable Xdebug, defaults to0(false) not available in-minimagesPHP_USER_ID(Debian only) user ID, when running commands as webserver (www-data), see also #15SUPERVISOR_START_FPM(nginx-flavor only) whether to start PHP-fpm by supervisor (default:true)SUPERVISOR_START_NGINX(nginx-flavor only) whether to start nginx by supervisor (default:true)
Building
docker-compose build
Testing
docker-compose run --rm php php /tests/requirements.php
Xdebug
To enable Xdebug, set PHP_ENABLE_XDEBUG=1 in .env file
Xdebug is configured to call ip xdebug.remote_host on 9005 port (not use standard port to avoid conflicts),
so you have to configure your IDE to receive connections from that ip.
If you are using macOS, you can fill xdebug.remote_host with host.docker.internal, due to a network limitation on mac (https://docs.docker.com/docker-for-mac/networking/#port-mapping)
(macOS) configuration
xdebug.remote_host=host.docker.internal
Documentation
- Guide: English, Português - Brasil
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
License
The Yii 3.x PHP Docker Image is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.