What does vendor mean in web file structure?

PhpHtmlWeb Applications

Php Problem Overview


Every now and then I see vendor being used in a directory structure on web apps.

Like this:

<script src="js/vendor/modernizr-2.6.2.min.js"></script> 

What does this mean? Why do people use it?

More importantly, should I use it? I make web apps using php and javascript.

Php Solutions


Solution 1 - Php

It's a common convention to put files coming from various third party sources (the "vendors") in a folder named that way.

You can use it as it makes it clearer what's "from the project" and what is a dependency you rely upon, but it is merely a convention, not an obligation.

Solution 2 - Php

/vendor usually refers to a directory that contains third party plugins.

Solution 3 - Php

Most if the time, there are 3rd party libs stored and commonly it's ignored in VCS.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBen HarveyView Question on Stackoverflow
Solution 1 - PhpLepidosteusView Answer on Stackoverflow
Solution 2 - PhpSteveView Answer on Stackoverflow
Solution 3 - PhpEmii KhaosView Answer on Stackoverflow