Knowledge blog

PHP dependencies for Magento Open Source and Adobe Commerce

As we all know that Magento from 2.2 requires many dependencies including elasticsearch, there are many confusions on what PHP dependencies that Magento needs. Here are clear list of dependencies on version basis and it is advised that you have all these ready before you proceed with your actual Magento installation.

Magento Open Source:

  • ext-bcmath
  • ext-ctype
  • ext-curl
  • ext-dom
  • ext-fileinfo
  • ext-filter (installed by default with PHP packages)
  • ext-gd
  • ext-hash (installed by default with PHP packages)
  • ext-iconv
  • ext-intl
  • ext-json (installed by default with PHP packages)
  • ext-libxml (installed by default with PHP packages)
  • ext-mbstring
  • ext-openssl (installed by default with PHP packages)
  • ext-pcre (installed by default with PHP packages)
  • ext-pdo_mysql (installed by default with MySQL)
  • ext-simplexml
  • ext-soap
  • ext-sockets
  • ext-sodium (installed by default with PHP packages)
  • ext-tokenizer
  • ext-xmlwriter
  • ext-xsl
  • ext-zip
  • ext-zlib (installed by default with PHP packages)
  • lib-libxml (installed by default with PHP packages)

You can install extensions using sudo apt install php8.3-extensionname for example to install ext-bcmath issue the command sudo apt install php8.3-ext-bcmath.

Adobe Commerce:

  • ext-bcmath
  • ext-ctype
  • ext-curl
  • ext-dom
  • ext-fileinfo
  • ext-filter (installed by default with PHP packages)
  • ext-gd
  • ext-hash (installed by default with PHP packages)
  • ext-iconv
  • ext-intl
  • ext-json
  • ext-libxml (installed by default with PHP packages)
  • ext-mbstring
  • ext-openssl
  • ext-pcre
  • ext-pdo_mysql (installed by default with MySQL)
  • ext-simplexml
  • ext-soap
  • ext-sockets
  • ext-sodium
  • ext-spl
  • ext-tokenizer
  • ext-xmlwriter
  • ext-xsl
  • ext-zip
  • ext-zlib (installed by default with PHP packages)
  • lib-libxml (installed by default with PHP packages)

B2B for Adobe Commerce:

  • ext-bcmath
  • ext-ctype
  • ext-curl
  • ext-dom
  • ext-fileinfo
  • ext-filter (installed by default with PHP packages)
  • ext-gd
  • ext-hash (installed by default with PHP packages)
  • ext-iconv
  • ext-intl
  • ext-json
  • ext-libxml (installed by default with PHP packages)
  • ext-mbstring
  • ext-openssl
  • ext-pcre
  • ext-pdo_mysql (installed by default with MySQL)
  • ext-simplexml
  • ext-soap
  • ext-sockets
  • ext-sodium
  • ext-spl
  • ext-tokenizer
  • ext-xmlwriter
  • ext-xsl
  • ext-zip
  • ext-zlib (installed by default with PHP packages)
  • lib-libxml (installed by default with PHP packages)
Scroll to Top