diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md
index 4e926a52..4a7041c5 100644
--- a/DOCUMENTATION/content/documentation/index.md
+++ b/DOCUMENTATION/content/documentation/index.md
@@ -1599,6 +1599,21 @@ will set the clock back 1 day. See (https://github.com/wolfcw/libfaketime) for m
+
+
+
+## Install YAML PHP extension in the php-fpm container
+YAML PHP extension allows you to easily parse and create YAML structured data. I like YAML because it's well readable for humans. See http://php.net/manual/en/ref.yaml.php and http://yaml.org/ for more info.
+
+1 - Open the `.env` file
+
+2 - Search for the `INSTALL_YAML` argument under the PHP-FPM container
+
+3 - Set it to `true`
+
+4 - Re-build the container `docker-compose build php-fpm`
+
+
## PHPStorm Debugging Guide
diff --git a/docker-compose.yml b/docker-compose.yml
index fa8fe655..83693703 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -156,6 +156,7 @@ services:
- INSTALL_CALENDAR=${PHP_FPM_INSTALL_CALENDAR}
- INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME}
- INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE}
+ - INSTALL_YAML=${INSTALL_YAML}
volumes:
- ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
diff --git a/env-example b/env-example
index f9fea34d..a0d57065 100644
--- a/env-example
+++ b/env-example
@@ -162,6 +162,7 @@ PHP_FPM_INSTALL_CALENDAR=false
PHP_FPM_INSTALL_FAKETIME=false
PHP_FPM_INSTALL_IONCUBE=false
PHP_FPM_FAKETIME=-0
+INSTALL_YAML=false
### PHP_WORKER ############################################
diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile
index 427214e7..3bd250d4 100644
--- a/php-fpm/Dockerfile
+++ b/php-fpm/Dockerfile
@@ -539,6 +539,20 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
&& rm -rf /tmp/cphalcon* \
;fi
+###########################################################################
+# YAML:
+###########################################################################
+
+USER root
+
+ARG INSTALL_YAML=false
+
+RUN if [ ${INSTALL_YAML} = true ]; then \
+ apt-get install libyaml-dev -y ; \
+ pecl install yaml ; \
+ docker-php-ext-enable yaml \
+;fi
+
###########################################################################
# Check PHP version:
###########################################################################