The problem I raise is due to duality of php (cli), which means several versions of php are installed in our computer. In my case it had 5.3.29 and 5.5.9 versions. Composer needs php version > = 5.4.0
Install Composer
curl -sS curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer
I get the following error:
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with –with-openssl
Read more
Source: New feed