A
A
Anatoly2018-04-11 19:49:09
Composer
Anatoly, 2018-04-11 19:49:09

How to install composer for desired PHP version?

Greetings!
Faced such a problem.
I have a native version of php 5.4 installed on my server, but for some projects I can choose a different version through ISPManager.
The problem is that these projects require PHP 7.0 and higher, and the composer must be installed on the native version.
The server is running CentOS 7.
Is it possible to somehow install the composer on an alternative version of php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-04-11
@les-anatoliy

download the composer.phar of the required versions to any place and make symlinks to the project roots on them.
well, add execution rights: chmod u + x composer.phar
total instead of composer update you will write
./composer update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question