Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of setting HTTP Agent by Composer in PHP

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of setting HTTP agent in Composer in PHP, which is very detailed and has certain reference value. Friends who are interested must read it!

Although composer install is very cool to use, but because packagist.org and github are often indirectly covered, install is often stuck for half a day.

I can't help it. Set up an agent.

The setting method is as follows:

Add the environment variable http_proxy or HTTP_PROXY and set the value to your proxy address.

Take myself as an example, in the Win8.1 system, the agent uses Goagent, and the value of the environment variable is

Http://127.0.0.1:8087

When the setup is complete, re-composer install,it's OK!

With a picture, by the way, show my DOS window color matching ~ ~

The above is all the content of this article "how to set up HTTP proxy in Composer in PHP". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report