0

I am using Composer and was wondering where I put my library folder.

Should I keep it separate from the Vendor folder or put it in the Vendor folder?
If you do put it in the Vendor folder, should I push that to Git because I read that it is a bad practice to push your vendor folder up to git.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

0

The vendor folder is generally ignored, as I explained in "Git submodules and composer clarification".

So if you have to, put the library folder outside of the vendor folder.

That being said, check that you don't put too many or too large binaries in it.
And if you depend on library sources, consider including only submodules, because there are just an entry in the index (very lightweight).

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250