Home > PHP Framework > YII > body text

How to download and install the yii2.0 framework

王林
Release: 2020-03-11 11:32:02
original
2118 people have browsed it

How to download and install the yii2.0 framework

Before installing the Yii2.0 framework, you must first install the PHP web environment on the Windows system. This is a prerequisite for PHP development. When installing the PHP web environment on Windows, you can choose some integrated environments, which are very convenient to install with one click, such as phpstudy.

Confirm whether the composer tool is installed, win R, cmd to enter the command line, enter composer to check whether it is installed. If it is not installed, please install the composer tool first.

How to download and install the yii2.0 framework

In the PHP web environment, create the installation directory of the yii2.0 framework. I use the phpstudy integrated environment, create the yii2 directory in the phpstudy\WWW\ directory, and later install the basic and advanced versions of yii2 in this directory.

How to download and install the yii2.0 framework

win R, enter cmd to enter the Windows command line. Enter the created yii2 directory.

How to download and install the yii2.0 framework

To install the basic version of the yii2.0 framework, execute the command:

composer create-project --prefer-dist yiisoft/yii2-app -basic basic

How to download and install the yii2.0 framework

#Test whether the basic version is installed successfully. Enter: http://localhost/yii2/basic/web/index.php in the address bar of the browser. The premise is that the php web service is running.

How to download and install the yii2.0 framework

Related tutorial recommendations: yii framework

The above is the detailed content of How to download and install the yii2.0 framework. 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 [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!