首頁  >  文章  >  開發工具  >  composer require如何指定版本

composer require如何指定版本

藏色散人
藏色散人轉載
2020-08-19 13:28:2913744瀏覽

下面由composer教學專欄為大家介紹composer require指定版本的方法,希望對需要的朋友有幫助!

composer require如何指定版本

預設

composer require endroid/qr-code

指定版本

composer require endroid/qr-code 1.9.3
# composer require endroid/qr-code 1.9.3
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Removing endroid/qr-code (2.5.1)
  - Installing endroid/qr-code (1.9.3): Downloading (100%)         
    The Process class relies on proc_open, which is not available on your PHP installation.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
Writing lock file
Generating autoload files

以上是composer require如何指定版本的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文轉載於:cnblogs.com。如有侵權,請聯絡admin@php.cn刪除