Home >Development Tools >composer >PHP Composer Setup HTTP Proxy
composer install is great to use, but because packagist.org and github are often indirect The installation was blocked for a long time, causing the installation to be stuck for a long time.
No way, set up a proxy.
The following section of composer tutorial will introduce its setting method.
First go to the Composer official website and search around;
The setting method is as follows:
(PS: The following is based on the Composer official documentAdaptation, any similarity is purely coincidental. :) )
Add the environment variable http_proxy or HTTP_PROXY and set the value to your proxy address.
Take me as an example, Win8.1 system, the agent uses Goagent, the environment variable value is
http://127.0.0.1:8087
After the setting is completed, re-composer install, it's OK!
Attached is a picture to show off my DOS window color~~
The above is the detailed content of PHP Composer Setup HTTP Proxy. For more information, please follow other related articles on the PHP Chinese website!