Home > Development Tools > composer > How does composer require specify the version?

How does composer require specify the version?

藏色散人
Release: 2020-08-19 13:28:29
forward
14102 people have browsed it

The following tutorial column of composer will introduce to you how to require a specified version of composer. I hope it will be helpful to friends who need it!

How does composer require specify the version?

Default

composer require endroid/qr-code
Copy after login

Specified version

composer require endroid/qr-code 1.9.3
Copy after login
# 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
Copy after login

The above is the detailed content of How does composer require specify the version?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template