Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKohane Kagami
12,390 PointsHow can I install a composer on windows?
I have Mamp but I cannot install a composer on my windows. I created php.ini file but I got an error message when I tried to install Composer-Setup.exe. "The openssl extension is missing from the PHP version you specified. This means that secure HTTPS transfers are not possible. The recommended option is to enable the extension in your php.ini, then click Back and try again. The php.ini used by your command-line PHP is: C:/MAMP/bin/php/php7.0.0/php.ini."
2 Answers
Kohane Kagami
12,390 PointsOk now I realized that I need to install Xampp to use Mamp on Windows. :) I ran this code on Xampp "php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php php -r "if (hash_file('SHA384', 'composer-setup.php') === '7228c001f88bee97506740ef0888240bd8a760b046ee16db8f4095c0d8d525f2367663f22a46b48d072c816e7fe19959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
and I could install the composer on MAMP.
Kohane Kagami
12,390 PointsYeah I did like that but I got the error. Also I have Mamp and not Wamp.