If all was installed correctly, you should see a version number. ![]() Open up Command Prompt and type composer -V (that’s uppercase V). In System Variables, click Path and then click Edit.Ĭlick New, type the path to your PHP folder ( c:\php7) and click OK.Ĭlose the System Properties dialogue by clicking OK. In System Properties, click Environment Variables. Open System Properties by clicking the start menu and typing sysdm.cpl and press Enter. So that you don’t have to type the whole path to php.exe every time you run a PHP command, you should add c:\php7 as a path environment variable. Add Path Environment VariableĬomposer setup usually does this for you, but if for whatever reason it didn’t, you can set one up manually. Operable program or batch file.”, you may need to Add a Path Environment Variable. ![]() If you get an error “‘php’ is not recognized as an internal or external command, If it returns a PHP version, you can skip to Step 6 to test Composer. Open Command Prompt, type php -v and press Enter. If you have any Command Prompt windows currently open, close them now. Skip the Proxy URL settings, just click Next then click Install.Ĭlick Finish once install is complete. If Setup prompts to create php.ini, allow it and click Next. In the second step of Composer Setup, make sure the correct path to php.exe is set and click Next.
0 Comments
Leave a Reply. |