What should do about this warning: symfony 5.2 please install the intl php extension for best performance?

This page summarizes the projects mentioned and recommended in the original post on /r/symfony

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • docker-php-extension-installer

    Easily install PHP extensions in Docker containers

  • If you use Docker there's this great tool: https://github.com/mlocati/docker-php-extension-installer

  • php-memcached

    memcached extension based on libmemcached library

  • # # Builds the PHP-FPM app image for our PHP Based web apps # # update the PHP version on the next line. FROM php:7.4-fpm # sets the Composer and NGINX versions to be installed. ENV COMPOSER_VER=1.10.21 \ NGINX_VER=1.18.0-2~buster # Install required packages RUN apt-get update && \ apt-get install --no-install-recommends --no-install-suggests -y \ apt-transport-https unzip zip gnupg2 dash \ libfreetype6-dev libjpeg62-turbo-dev less \ libmcrypt-dev libpng-dev libbz2-dev vim git\ libssl-dev autoconf libonig-dev supervisor \ ca-certificates curl g++ libicu-dev nano \ libmagickwand-dev libzip-dev openssh-client \ gnupg libcurl4-openssl-dev sudo git libxslt-dev \ zlib1g-dev graphviz zip libmcrypt-dev libicu-dev \ g++ libpcre3-dev libgd-dev libfreetype6-dev sqlite \ librabbitmq-dev ghostscript \ curl build-essential unzip gcc make autoconf \ libc-dev pkg-config libmemcached-dev libzip-dev \ libonig-dev libpq-dev && \ rm -r /var/lib/apt/lists/* && \ ln -s /bin/dash /bin/ash # Configure PHP GD Library RUN docker-php-source extract && docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg # Now install php extensions RUN docker-php-ext-install bcmath bz2 exif soap ftp gettext mbstring opcache \ shmop sockets sysvmsg sysvsem sysvshm zip iconv pdo_mysql gd intl xsl RUN docker-php-ext-configure intl RUN pecl install imagick-3.4.3 && docker-php-ext-enable imagick \ && pecl install amqp \ && docker-php-ext-enable amqp # Download and install memcached for PHP 7 RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/v3.1.5.tar.gz" \ && mkdir -p /usr/src/php/ext/memcached \ && tar -C /usr/src/php/ext/memcached -zxvf /tmp/memcached.tar.gz --strip 1 \ && docker-php-ext-configure memcached \ && docker-php-ext-install memcached \ && rm /tmp/memcached.tar.gz # Install Oracle MySQL client RUN MYSQL_GPGKEY=A4A9406876FCBD3C456770C88C718D3B5072E1F5; \ found=''; \ for server in \ ha.pool.sks-keyservers.net \ hkp://keyserver.ubuntu.com:80 \ hkp://p80.pool.sks-keyservers.net:80 \ pgp.mit.edu \ ; do \ echo "Fetching GPG key $MYSQL_GPGKEY from $server"; \ apt-key adv --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$MYSQL_GPGKEY" && found=yes && break; \ done; \ test -z "$found" && echo >&2 "error: failed to fetch GPG key $MYSQL_GPGKEY" && exit 1; \ echo "deb http://repo.mysql.com/apt/debian buster mysql-8.0" >> /etc/apt/sources.list.d/mysql.list && \ apt-get update && \ apt-get install --no-install-recommends --no-install-suggests -y \ mysql-client && rm -rf /var/lib/apt/lists/* # install nginx (copied from official nginx Dockerfile) RUN NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; \ found=''; \ for server in \ ha.pool.sks-keyservers.net \ hkp://keyserver.ubuntu.com:80 \ hkp://p80.pool.sks-keyservers.net:80 \ pgp.mit.edu \ ; do \ echo "Fetching GPG key $NGINX_GPGKEY from $server"; \ apt-key adv --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; \ done; \ test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; \ echo "deb http://nginx.org/packages/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list \ # echo "deb-src http://nginx.org/packages/debian/ stretch nginx" >> /etc/apt/nginx.list \ && apt-get update \ && apt-get install --no-install-recommends --no-install-suggests -y \ nginx=${NGINX_VER} \ nginx-module-xslt=${NGINX_VER} \ nginx-module-geoip=${NGINX_VER} \ nginx-module-image-filter=${NGINX_VER} \ gettext-base \ && rm -rf /var/lib/apt/lists/* # forward nginx request and error logs to docker log collector RUN ln -sf /dev/stdout /var/log/nginx/access.log \ && ln -sf /dev/stderr /var/log/nginx/error.log COPY ./nginx.conf /etc/nginx/nginx.conf COPY ./nginx-site.conf /etc/nginx/conf.d/nginx-site.conf RUN rm /etc/nginx/conf.d/default.conf # Install composer and installation parallelizer ENV PATH="/composer/vendor/bin:$PATH" \ COMPOSER_ALLOW_SUPERUSER=1 \ COMPOSER_VENDOR_DIR=/var/www/vendor \ COMPOSER_HOME=/composer RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer --version=${COMPOSER_VER} \ && php -r "unlink('composer-setup.php');" \ && composer --ansi --version --no-interaction \ && composer global require hirak/prestissimo # Adjust PHP settings for saner defaults RUN echo "upload_max_filesize = 10M" > /usr/local/etc/php/php.ini && \ echo "post_max_size = 10M" >> /usr/local/etc/php/php.ini && \ echo "max_execution_time = 300" >> /usr/local/etc/php/php.ini && \ echo "memory_limit = 256M" >> /usr/local/etc/php/php.ini # Adjust ImageMagick Policy RUN sed -i -E '//d' /etc/ImageMagick-6/policy.xml # Copy supervisord config into place # We use supervisord to keep PHP-FPM and NGINX running COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY healthcheck.php /usr/local/bin/healthcheck.php ## add the jenkins user and group (For using ssh while building images) RUN useradd -ms /bin/bash -u 1000 -U jenkins CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts