yii framework for learning (zero)

  1. Installation yii: Before local installation, make sure to configure the PHP environment variables, can be detected by cmd input PHP -v to see the PHP version number, then OK PHP is not an internal command, you need to add PHP environment variables composer... installed, installed on a Windows composer, go to the official website to download the setup.exe installation program directly. when installed, you configure composer environment variables by composer install yii. to ensure that the OpenSSL extension opened. 
  2. Before installation, the first composer SITE replaced by Chinese Mirror:

    composer config -g repo.packagist composer https://packagist.phpcomposer.com
  3. Composer asset install plug-ins:
    Composer , Ltd. Free Join  The require "fxp / Composer-Asset-plugin: ^ 1.2.0"                // This is in line with ^ represents the version number is higher than equal to 1.2.0
  4. After installing the asset, install yii :( If you want to install e: the / a directory, use cmd or Git (The use cmd) into the appropriate directory, `cd e: / project`, run the command)
    the Create-Project --prefer-Composer dist yiisoft / yii2-App-advanced Rubbish      // This is an advanced template, you can choose Basic 
    Composer-the Create Project --prefer-dist yiisoft / yii2-App-Basic Rubbish         // This is the basic version basic

     

  5. Installation fxp / composer-asset-plugin, if the wrong version of a bunch of errors will be reported, have encountered the following error solutions

Guess you like

Origin www.cnblogs.com/bneglect/p/11351155.html