Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 25, 2022 04:12 pm GMT

My checklist of PHP extensions used in Alpine docker image

I use a base-alpine-php image to build micro-service. For most of my use cases, I am going to install the following packages, if I really need them:

optional, only if I need to read/parse XML documents

  • php8-xml
  • php8-xmlwriter
  • php8-simplexml

optional, only if I need serve the application via FastCGI

  • php8-fpm
  • php8-session

optional, only if I need the communication with my favorite PostgreSQL

  • php8-pdo
  • php8-pdo_pgsql
  • php8-pgsql

optional, only if I need debug the complex PHP project

  • php8-xdebug

optional, only if I need compress the documents.

  • php8-zlib
  • php8-phar
PackageDescriptionsignificance
gitgit is required to install certain package from source codemust
makemake is required to build certian package from source codemust
nanonano light weight editor for consoleoptional
htopa handy command-line tool that displays running processes on a Linux system in real-timeoptional
curlcurl is required to download certain packagesmust
openRCOpenRC is the init system used in alpine. The init system manages the services, startup and shutdown of your computer.must
nginxNginx(engine x) is an HTTP and reverse proxy serveroptional
php8PHP engine version 8must
php8-apcuAPCuis an in-memory key-value store for PHP. APC provided both opcode caching (opcache) and object caching.must
php8-ctypethis extension check whether a character or string falls into a certain character class according to the current localemust
php8-curlthis extension support PHP to download data using curl.must
php8-posixThis module contains an interface to those functions defined in the IEEE 1003.1 (POSIX.1) standards document which are not accessible through other means.must
php8-tokenizerThe tokenizer functions provide an interface to the PHP tokenizer embedded in the Zend Engine.must
php8-iconviconv Convert a string from one character encoding to anothermust
php8-intlIt enables PHP programmers to perform UCA-conformant collation and date/time/number/currency formatting in their scripts.must
php8-jsonPHPhas built-in functions to encode and decodeJSONdatamust
php8-mbstringMbstringis an extension ofphpused to manage non-ASCII strings. It is non-default and need to be enabled manually.must
php8-opcacheEnables the opcode cache for the CLI version ofPHPmust
php8-opensslThis extension binds functions ofOpenSSLlibrary for symmetric and asymmetric encryption and decryption.must
php8-pcntlProcess Control support in PHP implements the Unix style of process creation, program execution, signal handling and process termination.must
php8-domThe built-inDOMparser makes it possible to process XML documents inPHP.optional
php8-xmlXML parser for PHPoptional
php8-xmlwriterXML writer for PHPoptional
php8-fileinfoFileInfo functions module can try to guess a content type and encoding of a fileoptional
php8-fpmFastCGI Process Manager is a primaryPHPFastCGI implementation containing some features (mostly) useful for heavy-loaded sites.optional
php8-pdoPHP PDOis a database access layer that provides a uniform interface for working with multiple databasesoptional
php8-pharphar is a very simple program for creatingpharfiles with CLIoptional
php8-pdo_pgsqlPDO_PGSQLis a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to PostgreSQL databases.optional
php8-pgsqla PostgreSQL module for PHPoptional
php8-xdebugXdebug module for PHPoptional
php8-zlibThis module enables you to transparently read and write gzip (.gz) compressed filesoptional
php8-sessionSession support in PHP consists of a way to preserve certain data across subsequent accesses.optional
php8-simplexmla very robustSimpleXMLparseroptional

Original Link: https://dev.to/vikbert/my-checklist-of-php-extensions-used-in-alpine-docker-image-1g3j

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To