Home > Development Tools > composer > How does Composer perform a downgrade operation? Teach you how to downgrade to version 1

How does Composer perform a downgrade operation? Teach you how to downgrade to version 1

藏色散人
Release: 2021-10-22 17:17:55
forward
4752 people have browsed it

This article is introduced by the tutorial column of composer to downgrade Composer to version 1. I hope it will be helpful to friends in need!

How does Composer perform a downgrade operation? Teach you how to downgrade to version 1

Composer domestic acceleration: Composer downgraded to version 1

View the current version:

$ composer --version
Copy after login
Copy after login

Perform downgrade operation:

$ composer self-update --1
Copy after login

Determine the current version:

$ composer --version
Copy after login
Copy after login

Related introduction:

Composer is A dependency management tool for PHP5.3 and above. It allows you to declare the code libraries your project depends on and it will install them for you in your project. Composer is not a package manager. Yes, it involves "packages" and "libraries", but it's managed on a per-project basis, with installations in some directory within your project (e.g. vendor). By default it won't install anything globally. So this is just a dependency management.

The above is the detailed content of How does Composer perform a downgrade operation? Teach you how to downgrade to version 1. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.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