Home > Development Tools > composer > PHP Composer Setup HTTP Proxy

PHP Composer Setup HTTP Proxy

藏色散人
Release: 2019-09-21 13:34:07
forward
7315 people have browsed it


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
Copy after login

After the setting is completed, re-composer install, it's OK!

Attached is a picture to show off my DOS window color~~

PHP Composer Setup HTTP Proxy

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template