http://www.freetuts.org/tutorial/5?title=Installing+Yii2+framework+on+Windows+8.1

MASUK KE XAMPP FOLDER PHP
===================
php.exe -r "readfile('https://getcomposer.org/installer');" | php.exe

php.exe composer.phar self-update

php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
php composer.phar create-project yiisoft/yii2-app-basic ../htdocs/myproject
php composer.phar create-project yiisoft/yii2-app-advanced ../htdocs/myproject

======== from yii must update
php composer.phar create-project yiisoft/yii2-app-basic ../htdocs/myproject
php composer.phar create-project yiisoft/yii2-app-advanced ../htdocs/myproject
=======
php composer.phar create-project yiisoft/yii2-app-basic ../htdocs/myproject
php composer.phar create-project yiisoft/yii2-app-advanced ../htdocs/myproject

and then go to htdocs/myproject

php init
create database first and edit common/main-local.php
yii migrate

ON LINUX
===================

create folder under your project
curl -sS https://getcomposer.org/installer | php

curl -sS https://getcomposer.org/installer | php
php composer.phar self-update


==== fixed for linux
composer create-project --prefer-dist yiisoft/yii2-app-basic /usr/share/nginx/www/myproject
====

php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4"
php composer.phar create-project yiisoft/yii2-app-advanced ../htdocs/myproject

php init
yii migrate

sudo chmod -R 755 /usr/share/nginx/www/myproject
sudo chmod 755 -R /usr/share/nginx/www/myproject


=== trouble ==
composer diagnose
composer self-update
curl -sS https://getcomposer.org/installer | php -- --check
rm -rf vendor && composer update -v
composer clear-cache

 

Menaikan time process di composer :

COMPOSER_PROCESS_TIMEOUT=20000 php composer.phar install

 

Leave a Comment:



digital_ocean