In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Learn how composer update updates the reduced version? This problem may be often seen in our daily study or work. I hope you can gain a lot from this article. Here is the reference content brought by the editor. Let's take a look at it!
1. Originally wanted to upgrade to 5.0.23, update directly to 5.1.31 in the root directory feels that the version is a little high, want to reduce to 5.0.23 solution is as follows:
Go to the root directory vim and open the composer.json file
"require": {"php": "> = 5.4.0", "topthink/framework": "^ 5.0", "topthink/think-captcha": "^ 1.0", "topthink/think-image": "^ 1.0", "topthink/think-helper": "^ 1.0", "ezyang/htmlpurifier": "^ 4.9"}
Mainly look at this code. If you want to update to the desired version, you only need to modify topthink/framework
Explanation: the ^ before "^ 5.0" will directly detect the latest version update.
Modify method 1: "topthink/framework": "5.0.*" remove the preceding ^ followed by *, indicating that it is updated to 5.0. The latest version of
Modification method 2: "topthink/framework": "5.0.23" specified version, which means to update to version 5.0.23
Running result:
Thank you for reading the above, do you have a general understanding of the article "how to update the reduced version of composer update"? I hope the content of the article will be helpful to you. If you want to know more about the content of the article, you are 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.