diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md
index cbada18d..4320f6be 100644
--- a/DOCUMENTATION/content/documentation/index.md
+++ b/DOCUMENTATION/content/documentation/index.md
@@ -2198,6 +2198,32 @@ YAML PHP extension allows you to easily parse and create YAML structured data. I
4 - Re-build the container `docker-compose build php-fpm`
+
+
+## Install RDKAFKA extension in php-fpm
+
+1 - Open the `.env` file
+
+2 - Search for the `PHP_FPM_INSTALL_RDKAFKA` argument under the PHP-FPM container
+
+3 - Set it to `true`
+
+4 - Re-build the container `docker-compose build php-fpm`
+
+
+
+
+## Install RDKAFKA extension in workspace
+
+This is needed for 'composer install' if your dependencies require Kafka.
+
+1 - Open the `.env` file
+
+2 - Search for the `WORKSPACE_INSTALL_RDKAFKA` argument under the WORKSPACE container
+
+3 - Set it to `true`
+
+4 - Re-build the container `docker-compose build workspace`
diff --git a/docker-compose.yml b/docker-compose.yml
index e01f9aa7..883e244c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -132,6 +132,7 @@ services:
- INSTALL_FSWATCH=${WORKSPACE_INSTALL_FSWATCH}
- INSTALL_AST=${WORKSPACE_INSTALL_AST}
- INSTALL_YAML=${WORKSPACE_INSTALL_YAML}
+ - INSTALL_RDKAFKA=${WORKSPACE_INSTALL_RDKAFKA}
- INSTALL_MAILPARSE=${WORKSPACE_INSTALL_MAILPARSE}
- INSTALL_GIT_PROMPT=${WORKSPACE_INSTALL_GIT_PROMPT}
- INSTALL_XMLRPC=${WORKSPACE_INSTALL_XMLRPC}
diff --git a/env-example b/env-example
index 25f590e2..838c037b 100644
--- a/env-example
+++ b/env-example
@@ -159,6 +159,7 @@ WORKSPACE_INSTALL_SSHPASS=false
WORKSPACE_INSTALL_INOTIFY=false
WORKSPACE_INSTALL_FSWATCH=false
WORKSPACE_INSTALL_YAML=false
+WORKSPACE_INSTALL_RDKAFKA=false
WORKSPACE_INSTALL_MAILPARSE=false
WORKSPACE_INSTALL_XMLRPC=false
WORKSPACE_PUID=1000
diff --git a/workspace/Dockerfile b/workspace/Dockerfile
index 5f4c38a3..30026fa4 100644
--- a/workspace/Dockerfile
+++ b/workspace/Dockerfile
@@ -1277,6 +1277,20 @@ RUN if [ ${INSTALL_YAML} = true ]; then \
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/yaml.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/35-yaml.ini \
;fi
+###########################################################################
+# RDKAFKA:
+###########################################################################
+
+ARG INSTALL_RDKAFKA=false
+
+RUN if [ ${INSTALL_RDKAFKA} = true ]; then \
+ apt-get install -y librdkafka-dev && \
+ pecl install rdkafka && \
+ echo "extension=rdkafka.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/rdkafka.ini && \
+ ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/rdkafka.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-rdkafka.ini \
+ && php -m | grep -q 'rdkafka' \
+;fi
+
###########################################################################
# FFMpeg:
###########################################################################