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


(xuzicheng1001) #1

Run command

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

What is the reason for this red font? Thank you.
“your requirements could not be resolved to an installable set of packages.”


(Miodrag Stojanović) #2

You should follow official documentation.


(xuzicheng1001) #3

I use the ubuntu18.041 desktop version. Are you a developer? Do you have time? Can I make video tutorials? I am China, and I don’t understand English very well, especially some wrong codes! Thank


(Miodrag Stojanović) #4

1.Step

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

2.Step

mv composer.phar /usr/local/bin/composer

3.Step

composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic

Yes i am. The time is only thing that i don’t have. Yes you can.