The purpose of Composer is that you just have to have an empty(!) vendor
directory in your repo but track composer.json
(requirements) and composer.lock
(last tested specific versions) and run composer install
after checkout on a new development machine.
(NB. composer install
will install the specific versions according to the composer.lock
file. composer update
will install whatever latest version matches the requirements defined in the composer.json
.)
Composer should then download the appropriate binary for your system and put it into the vendor/bin/
directory.