Home > Article > PHP Framework > How to configure yii in w10
w10 How to configure yii?
To install baicomposer, you can use Baidu composer to download and install the software. Please make sure the machine has a PHP environment before du installation. After installation, enter the console and enter composer to see the following interface.
Use the cd command to enter the directory where the template is to be stored (I temporarily store it in D:)
To prepare to install the advanced template, enter the command
composer global require "fxp /composer-asset-plugin:1.0.0-beta1"
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced yii2
Start below Just wait, you know the reason...
Note that the last yii2 is the folder name of the template and can be modified. (I use yii-application)
After installing the template, you need to initialize the template. Enter the advanced template directory. Select the installation environment, 0: development environment, 1: application environment.
After initialization, configure database information. Open the template file and find main-local.php in common\config
Enter the user name, password, and database name (it already exists, if it does not exist, you need to create it yourself),
Recommended tutorial: "phpmyadmintutorial》
The above is the detailed content of How to configure yii in w10. For more information, please follow other related articles on the PHP Chinese website!