We are developing a Yii web app and after setting up it in a local laptop we pushed the project into a git repository (without the vendor
directory).
Now I'd like to pull it in another local machine, but when I try to do that of course the vendor dir is not present and I get some error (e.g. blank page when accessing the index.php, error when running the requirement.php...).
Should I also push the vendor directory or is it better to download the yii2 framework for each local machine? In the second case, how should I do that, since we already used the composer to create the project previously and we don't want to call it again? Or is there a better approach to handle Yii project with git?