D:perxamppphpphp -r "readfile('http://getcomposer.org/installer');" | php php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced D:perxampphtdocshh2
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started