by stunt · 8y ago · 0 comments
You should only version composer.lock and composer.json files. Ignore vendor directory and leave that job to your build step in CI/CD...
Committing vendor directory may or may not be a good idea. But having your own copy of all dependencies (current and past) is necessary.
Definitely! Git mirrors are cheap, and there are various solutions for composer proxies out there. If you consider CI/CD you will want freedom from external calls anyway.