Download the Composer setup Composer-Setup.exe
Run it.
Give it the location of the php executable i.e php.exe, im my case it was at c:\xampp\php\php.exe (XAMPP was installed at default location i.e. c:\xampp\)
If you get the Composer Error [ERR_DOWNLOAD]: Composer was not downloaded error,
here's what I did to resolve it:
Open up the Control Panel and go to:
Control Panel\System and Security\System
(or click the Win+Pause key to invoke it)
Goto Advanced system settings
that will open up System Properties
Click on Environment Variables button
Seelct the 'PATH' and click Edit
Add the line below to the end of what's contained in Variable value (if you just copy paste it then it will replace the values already present there, so be careful!)
;c:\xampp\php\;C:\ProgramData\Composer\bin
Click Ok, Ok, Ok
Open up c:\xampp\php in Windows Explorer (NOT Internet Explorer! Windows Explorer is the file manager of Windows OS) and open up php.ini in Notepad (I'm using SynWrite)
Next, find the Dynamic Extensions section:
Add this line to the end:
extension=php_openssl.dll
Save and Exit.
Go back to the Composer-Setup.exe and click Retry (Run it gain if you have closed it, give it the location of php.exe as described above and finish the setup, it should 'complete' happily now :) Well, mine did!
Log Out and Log In again to make it work.
Testing from the Command Prompt (just type composer from any directory):
Yay! Peace.
Now, back to Laravel.
Run it.
Give it the location of the php executable i.e php.exe, im my case it was at c:\xampp\php\php.exe (XAMPP was installed at default location i.e. c:\xampp\)
If you get the Composer Error [ERR_DOWNLOAD]: Composer was not downloaded error,
here's what I did to resolve it:
Open up the Control Panel and go to:
Control Panel\System and Security\System
(or click the Win+Pause key to invoke it)
Goto Advanced system settings
that will open up System Properties
Click on Environment Variables button
Seelct the 'PATH' and click Edit
Add the line below to the end of what's contained in Variable value (if you just copy paste it then it will replace the values already present there, so be careful!)
;c:\xampp\php\;C:\ProgramData\Composer\bin
Click Ok, Ok, Ok
Open up c:\xampp\php in Windows Explorer (NOT Internet Explorer! Windows Explorer is the file manager of Windows OS) and open up php.ini in Notepad (I'm using SynWrite)
Next, find the Dynamic Extensions section:
Add this line to the end:
extension=php_openssl.dll
Save and Exit.
Go back to the Composer-Setup.exe and click Retry (Run it gain if you have closed it, give it the location of php.exe as described above and finish the setup, it should 'complete' happily now :) Well, mine did!
Log Out and Log In again to make it work.
Testing from the Command Prompt (just type composer from any directory):
Yay! Peace.
Now, back to Laravel.
Hi! it doesnt work with wamp and php 5.4.14.
ReplyDeleteI have try all you say in this post but it isnt working :(
Alway the same error Composer error...
Hi, Nice article. Thank you for the article. Please see my article about Download XAMPP for Windows.
ReplyDelete