Home  >  Article  >  PHP Framework  >  What is the Yii2 framework?

What is the Yii2 framework?

Guanhui
GuanhuiOriginal
2020-06-09 14:48:143328browse

What is the Yii2 framework?

#What is the Yii2 framework?

Yii2 is a component-based high-performance PHP framework for developing large-scale Web applications. The framework is written in strict OOP, has complete library references and comprehensive tutorials, and provides Web Almost everything you need for application development.

Yii framework installation

1. If Composer has not been installed yet, install Composer first

(1 ) In Linux and Mac OS After the installation is complete, set the system environment variables (if you don't know how to configure composer global environment variables, just search on Baidu. There are many ready-made tutorials on the Internet). In this case, you can use the composer command directly in any directory.

2. If you have already installed Composer, please make sure you are using the latest version. You can use the composer self-update command to update Composer to the latest version.

3. Install Yii

(1) Install the basic version

curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer

After the installation is completed, the framework directory structure is as shown below:

What is the Yii2 framework?(2) Install advanced advanced version

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

Enter the advanced directory, execute the init.bat initialization script, and set the installation environment, development environment or production environment.

After the installation is completed, the framework directory structure is as shown below:

What is the Yii2 framework?Recommended tutorial: "

Yii Tutorial

"

The above is the detailed content of What is the Yii2 framework?. 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