Answer the question
In order to leave comments, you need to log in
How to download Yii2 using composer?
Good afternoon!
I installed composer with an installer on Windows , attached it to the php folder on OpenServer :
s:\DEVELOPER\openserver\OpenServer\modules\php\PHP-5.6\
2 files appeared there: composer.bat and composer.phar
I type the command from there:
php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic s:\DEVELOPER\openserver\OpenServer\domains\vmp\
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "composer.phar self-update" to get the latest version
.
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: ??????? ?????????? ?????????? ???? ???????????, ?.?. ?? ????
??? ?????????? ?? ????????? ????? ?? ??????? ?????? ??????, ??? ???? ????????? ??? ????????????? ?????????? ??-?? ????????? ??????? ??? ????????????? ?????
?????.
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--n
o-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]
composer self-update
Answer the question
In order to leave comments, you need to log in
I installed the composer installer on Windows, attached it to the php folder on OpenServer:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question