aptalca b06b0e505c
Merge pull request #864 from Saij/code-server-php-cli
code-server: php-cli initial release
2024-03-13 20:01:51 -04:00
2020-02-02 15:55:44 -05:00
2020-02-02 15:55:44 -05:00
2020-02-02 15:55:44 -05:00
2019-05-30 20:35:20 +01:00
2024-03-13 10:49:14 +01:00

PHP-CLI - Docker mod for code-server/openvscode-server

This mod adds php-cli and composer to code-server/openvscode-server, to be installed/updated during container start.

In code-server/openvscode-server docker arguments, set an environment variable DOCKER_MODS=linuxserver/mods:code-server-php-cli

If adding multiple mods, enter them in an array separated by |, such as DOCKER_MODS=linuxserver/mods:code-server-php-cli|linuxserver/mods:code-server-mod2

Installing specific PHP version

To install a specific PHP version simply define the environment variable PHP_VERSION with the version of your choice. As this mod uses the ondrej/php repository you can choose from the available versions there.

As default this mod will install PHP 8.2.

Example: PHP_VERSION=8.1

WARNING
Composer requires at least PHP 7.4 to run!

Installing PHP extensions

To install PHP extensions simply define the environment variable PHP_EXTENSIONS. If you want to install multiple extensions, seperate them with |.

Example: PHP_EXTENSIONS=simplexml|gd|zip

Enable Composer binary

To enable the installation of the composer binary, set the environment variable ENABLE_COMPOSER to yes.

Example: ENABLE_COMPOSER=yes

WARNING
Composer requires at least PHP 7.4 to run!

PHP configuration files

You can find all the PHP configuration files at /config/.php. They are symlinked to /etc/php

Description
No description provided
Readme 6.6 MiB
Languages
Text 100%