E
E
EVOSandru62015-06-19 07:05:09
Yii
EVOSandru6, 2015-06-19 07:05:09

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\

What I get:
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]

If I enter: composer self-update
Then it falls out:
"""" is not an internal or external
command, executable program or batch file.
The php
folder has been added to the environment variable, what could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2015-06-19
@Taraflex

I installed the composer installer on Windows, attached it to the php folder on OpenServer:

openserver already has its own composer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question