I\'m using composer as my dependency manager and since I need to develop with Yii Framework I added it to my composer.json file, so it looks like this:
//other p
With composer we work in a different way. With composer our application take care only of its code. In fact, if you kork with git, you must add yii folder to .gitignore couse is not your application folder. This is the symfony way.
What about Yii!? First of all I suggest you to start yii projects with:
$ composer create-project yiisoft/yii path/to/your/project
This is the Yii way to work with yii and composer. After that, when you finish to dowload yii, composer ask you if you want to keep or not yii's git files. You can simply say no, and remove manually these files. You can also try to fork yiisoft/yii and improve this behavior so this removing stuffs will happen automatically.