In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to configure repositories warehouse in composer, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
1. Configuration mode
1.1 Command Line configuration
Take Aliyun as an example, global mode (recommended):
$composer config-g repo.packagist composer https://mirrors.aliyun.com/composer/
1.2 use of individual projects
$composer config repo.packagist composer https://mirrors.aliyun.com/composer/2. Modify file configuration
There are two ways to write it
2.1 Array mode
[] is an array way, looking up in order
{"repositories": [{"type": "composer", "url": "http://packages.foo.com"}]}
2.2 object mode
{} object mode: use JSON object notation. However, JSON key / value correspondence is considered unordered, so consistent behavior is not guaranteed. So what are the advantages of using the object approach?
{"repositories": {"foo": {"type": "composer", "url": "http://packages.foo.com"} above is how to configure the repositories warehouse in composer. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please 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: 258
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.