Change composer global path (Windows)
To change the global path for Composer on Windows, you will need to update the system environment variables. Here are the steps to do this:
- Open the Start menu and search for "Environment Variables"
- Click on "Edit the system environment variables"
- In the System Properties window, click on the "Environment Variables" button
- Under "System Variables", scroll down and find the "Path" variable, then click on "Edit"
- Click on "New" and enter the path to the directory where Composer is installed on your computer.
- Click "OK" to save the changes and close all open windows.
After updating the environment variables, you should be able to use Composer from any directory in the command prompt. You may need to restart your command prompt or computer for the changes to take effect.