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"
Then upgrade Yii by running:
php composer.phar update yiisoft/yii2 yiisoft/yii2-composer bower-asset/jquery.inputmask
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!