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

How to install a specific version of a software package with Composer

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

Share

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

This article will explain in detail how to use Composer to install a specific version of the software package, Xiaobian feels quite practical, so share it with you as a reference, I hope you can gain something after reading this article.

This is a short quick article on how to install a specific version of a package using Composer

TL;DR version

composer require vendor/package:version//Examplecomposer require laravel/passport:6.0

detailed edition

Navigate to the project root directory at the terminal and install a specific version of the package using Composer by executing the following command

Suppose you want to install version 6.0.0 of the larvael/passport package into your project instead of installing the latest version. Then you should execute the following command

composer require laravel/passport:6.0.0

Add double quotes to use caret or tilde operators in version numbers.

for example

composer require middlewares/whoops "^0.4"

Wave version range (~) - ~1.2.3 corresponds to>=1.2.3 =1.2.3

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