- Docs/
PHP
92 words
Table of Contents
my php config #
Install LSP #
:MasonInstall intelephense
Install php #
Install php in Debian #
sudo apt update && sudo apt -y upgrade
sudo apt -y install php php-common
php -v
sudo apt -y install php-cli php-fpm php-json \
php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath
Install composer #
Install composer in Debian #
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer