Coder Social home page Coder Social logo

lsio-mod-code-server-php-cli's Introduction

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

lsio-mod-code-server-php-cli's People

Contributors

saij avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.