php - Composer and Yii -


i'm using composer dependency manager , since need develop yii framework added composer.json file, looks this:

//other properties... "require": {     //other dependencies...     "yiisoft/yii": "dev-master" } 

composer.json ok, yii downloaded correctly, there feature think composer misses. yii directory full of "rubbish", demo folders, build files bla bla don't need. there way tell composer keep directory , throw away others?

with composer work in different way. composer our application take care of code. in fact, if kork git, must add yii folder .gitignore couse not application folder. symfony way.

what yii!? first of suggest start yii projects with:

$ composer create-project yiisoft/yii path/to/your/project 

this yii way work yii , composer. after that, when finish dowload yii, composer ask if want keep or not yii's git files. can no, , remove manually these files. can try fork yiisoft/yii , improve behavior removing stuffs happen automatically.


Comments