Home > PHP Framework > YII > body text

How does composer update the yii2 version

angryTom
Release: 2020-02-18 10:20:04
Original
3957 people have browsed it

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"
Copy after login

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
Copy after login

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!

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