Image

Knowledge base → Installing php composer on Centos 7

[Virtual servers]
Date of publication: 17.01.2023

PHP Composer has proven itself as a convenient service for installing and updating PHP applications. 


1. Install the necessary modules if they are not present:

yum install php-cli php-zip wget unzip

2. Download the latest version of the script

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

3. Run the installation script

php composer-setup.php --install-dir=/usr/local/bin --filename=composer

4. Let's check the work

composer

To install or update an application, just go to the application directory and run the command:


For installation

composer require

To update

composer update




No Comments Yet