An open API service indexing awesome lists of open source software.

https://github.com/dmstr/docker-php-yii2

:whale: :cd: Docker PHP image containing extensions and libraries for Yii 2.0 Framework
https://github.com/dmstr/docker-php-yii2

base-image docker docker-php-image php yii2

Last synced: 7 months ago
JSON representation

:whale: :cd: Docker PHP image containing extensions and libraries for Yii 2.0 Framework

Awesome Lists containing this project

README

          

> :rotating_light: This repository is abandoned, please use https://github.com/yiisoft/yii2-docker

Supported tags and respective `Dockerfile` links
================================================

- `7.x-fpm-x.x`, `latest` ([Dockerfile](php/Dockerfile-fpm))
- `7.x-fpm-x.x-nginx`, `latest-nginx` ([Dockerfile](nginx/Dockerfile-fpm-nginx))

:information_source: See repository tags for full version numbers

See all available [image tags](https://hub.docker.com/r/dmstr/php-yii2/tags/)

[![build status](https://git.hrzg.de/dmstr/docker-php-yii2/badges/master/build.svg)](https://git.hrzg.de/dmstr/docker-php-yii2/commits/master)

Changelog
---------

### 8.x

- using updated yii2 images
- different system package installation
- composer 2
- removed standalone `fpm` image

### 7.x

- switched to PHP 7.4

### 6.x

- Alpine support has been dropped
- Forego has been replace with supervisord
- Removed Linkchecker

### 5.x

*no stable release*

### 4.x

- added bash-autocompletion
- removed separate xdebug flavour

Introduction
------------

This is a Docker PHP image containing PHP extensions and composer packages and libraries for *Yii 2.0 Framework*.
It is primarily intended to build Yii 2.0 applications `FROM` this image, see below for available application templates.

There is also an `nginx` flavour available for this image, in which PHP and nginx are managed with [supervisor](http://supervisord.org/).

In older versions of the `nginx` images, forego was used for process control.
However, since forego is no longer actively maintained and problems can arise if one of the started processes terminates unsuspectedly,
we decided to switch to supervisor.

Features
--------

### CLI commands

- `composer`
- `codecept`
- `phpunit`
- `npm`

#### Extensions

- soap
- zip
- curl
- bcmath
- exif
- gd
- iconv
- intl
- mbstring
- opcache
- pdo_mysql
- pdo_pgsql
- memcache
- xdebug - *installed, but not loaded by default*

Configuration
-------------

### ENV variables

- `GITHUB_API_TOKEN`
- `PHP_ENABLE_XDEBUG`
- `PHP_USER_ID` (debian only)

Development
-----------

Building the images

docker-compose build

Development bash

docker run -it dmstr/php-yii2 bash

Resources
---------

- [GitHub project](https://github.com/dmstr/docker-php-yii2)
- [GitLab build](https://git.hrzg.de/dmstr/docker-php-yii2/builds)
- [DockerHub image](https://hub.docker.com/r/dmstr/php-yii2/)
- [yii2-app](https://github.com/dmstr/docker-yii2-app) minimal application tempplate
- [phd5](https://github.com/dmstr/phd5-app) standard application template
- [phd5](https://github.com/dmstr/docs-phd5) documentation

---

#### ![dmstr logo](http://t.phundament.com/dmstr-16-cropped.png) Built by [dmstr](http://diemeisterei.de)