Home  >  Article  >  PHP Framework  >  How does composer update the yii2 version

How does composer update the yii2 version

angryTom
angryTomOriginal
2020-02-18 10:20:043836browse

How does composer update the yii2 version

How to update the yii2 version with composer

There are two methods:

1). If you are using composer from Yii 2.0.0 upgrade, just run the following command in your project root directory:

First, confirm that you have installed the latest version of the Composer asset plug-in (https://github.com/francoispluchino/composer-asset- plugin):

Recommended: Composer usage tutorial (basic usage)

php composer.phar global require "fxp/composer-asset-plugin:~1.2.0"

How does composer update the yii2 version

Then upgrade Yii by running:

php composer.phar update yiisoft/yii2 yiisoft/yii2-composer bower-asset/jquery.inputmask

How does composer update the yii2 version

2). If you use an archive file to install Yii, you should download the latest version of the file, unzip it and replace the old version.

Recommended related articles and tutorials: yii tutorial

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

Statement:
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