Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use composer with phpbrew?

I installed phpbrew to use php 5.4 in Ubuntu 14.04. It works fine, except when I try to use composer, which ignores phpbrew and installs dependencies related to php 5.5.

Is there a way to force composer to be compatible with phpbrew config? I trying to add: php: "5.4" in my composer.json, but it says that this requirement is not possible with my php version.

like image 544
nitche Avatar asked Feb 08 '23 10:02

nitche


1 Answers

You can easy install composer with phpbrew by following command:

$ phpbrew app get composer

Source: https://github.com/phpbrew/phpbrew Section: Installing Extra Apps

like image 72
mrDinkelman Avatar answered Feb 11 '23 01:02

mrDinkelman