I found a couple related posts, but those don\'t really answer my question. Let\'s say I want to install this package: https://github.com/pear/Net_Socket
an excerpt
If a package is seen as a git submodule, you haven't excluded the vendor
folder from being committed to your own repository. It is recommended to add the vendor folder to .gitignore
, and not commit these files, only commit composer.lock
(and composer.json
of course).
Apart from that, running composer install --prefer-dist
should do the job. Note that Composer seems to not change the download method used first if you change your mind later. If Composer detects a cloned repo, it is faster to just update that instead of downloading a ZIP and unpacking it. If you want to change that, delete the whole vendor
folder and run composer update --prefer-dist
.