About the Installation and Setup category

Questions regarding the Installation and Setup of a Yii 2.0 project.

Please use this category to ask questions about code that is related to version 2.0 of the Yii Framework.

When asking questions, make sure to follow the guidelines.

When you have problems with installing Yii, please read the Installation Guide carefully.

Yii 2.0 requires PHP version 5.4 or higher, make sure you have at least PHP 5.4 installed on your system.

I canot install YII
I am new to Yii and I try to create an application, but I have not had the luck to achieve the installation of the Windows version with XAMPP (do not condemn me to follow the installation instructions because I already did it), with PHP 7.2.0.
In a thousand pages on the Internet there are different ways to install Yii and I imagine that they vary depending on the version.
To leave doubts I will describe step by step and the results I have had so far.
A. install composer

  1. Go to https://getcomposer.org/download/
  2. Download Composer-Setup.exe and run (see 1.8.4)
  3. Execute the following script in a terminal
    php -r “copy (‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
    php -r “yes” (hash438 ‘mailbox,’ macero_phile '), v. php ');} echo PHP_EOL; "
    php composer-setup.php
    php -r “unlink (‘composer-setup.php’);”

B. install Yii

  1. Go to https://www.yiiframework.com/download
  2. change in the terminal to the directory \ xampp \ htdocs
  3. Execute the following script in the terminal.
    php composer.phar create-project yiisoft / yii2-app-basic basic

Up to this point, everything worked without problems, however, when executing the script:
php yii serve
send me the message “Could not open the input file: yii”
Prbe changing the port with "php yii serve --port = 8888
but the message continues.
I appreciate your support to solve this silly problem that has stuck with me in more than a month.