All Projects → yiisoft → Yii2 Docker

yiisoft / Yii2 Docker

Licence: bsd-3-clause
Official Docker images suitable for Yii 2.0

Projects that are alternatives of or similar to Yii2 Docker

Yii2 App Advanced
Yii 2.0 Advanced Application Template
Stars: ✭ 1,569 (+448.6%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Sphinx
Yii 2 Sphinx extension.
Stars: ✭ 172 (-39.86%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Jui
Yii 2 JQuery UI extension.
Stars: ✭ 120 (-58.04%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Smarty
Yii 2 Smarty Extension.
Stars: ✭ 67 (-76.57%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Bootstrap4
Yii 2 Bootstrap 4 Extension
Stars: ✭ 204 (-28.67%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Openapi
REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
Stars: ✭ 99 (-65.38%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Twig
Yii 2 Twig extension.
Stars: ✭ 130 (-54.55%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Elasticsearch
Yii 2 Elasticsearch extension
Stars: ✭ 401 (+40.21%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Gii
Yii 2 Gii Extension
Stars: ✭ 183 (-36.01%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Debug
Debug Extension for Yii 2
Stars: ✭ 179 (-37.41%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 App Basic
Yii 2.0 Basic Application Template
Stars: ✭ 548 (+91.61%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Apidoc
Yii 2 apidoc extension.
Stars: ✭ 236 (-17.48%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Redis
Yii 2 Redis extension.
Stars: ✭ 416 (+45.45%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Swiftmailer
Yii 2 swiftmailer extension.
Stars: ✭ 109 (-61.89%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Httpclient
Yii 2 HTTP client
Stars: ✭ 406 (+41.96%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Shell
Interactive shell
Stars: ✭ 129 (-54.9%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Mongodb
Yii 2 MongoDB extension
Stars: ✭ 299 (+4.55%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (-38.11%)
Mutual labels:  hacktoberfest, yii2, yii
Yii 2: The Fast, Secure and Professional PHP Framework
Stars: ✭ 13,852 (+4743.36%)
Mutual labels:  hacktoberfest, yii2, yii
Yii2 Imagine
Yii 2 imagine extension
Stars: ✭ 271 (-5.24%)
Mutual labels:  hacktoberfest, yii2, yii

Yii2 PHP Docker Image

Stable Build Status Development pipeline status

This is the repo of the official Yii 2.0 Framework image on DockerHub for PHP.


These Docker images are built on top of the official PHP Docker image, they contain additional PHP extensions required to run Yii 2.0 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.

Available versions for yiisoftware/yii2-php

7.4-apache, 7.3-apache
7.4-fpm, 7.3-fpm

Deprecated or EOL versions

7.2-apache, 7.1-apache, 7.0-apache, 5.6-apache
7.2-fpm, 7.1-fpm, 7.0-fpm, 5.6-fpm


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_FLAVOUR and PHP_BASE_IMAGE_VERSION


  • PHP_ENABLE_XDEBUG whether to load an enable Xdebug, defaults to 0 (false)
  • PHP_USER_ID (Debian only) user ID, when running commands as webserver (www-data), see also #15


docker-compose build


docker-compose run --rm php php /tests/requirements.php


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 (

### (macOS) configuration


More information can be found in the docs folder.


  • We do not officially support Alpine images, due to numerous issues with PHP requirements and because framework tests are not passing.
  • Depending on the (Debian) base-image (usually PHP <7.4) you might need to set X_LEGACY_GD_LIB=1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].