What does vendor mean?

A folder named vendor is commonly used in web projects. Here are some examples: rklet, ytd .

What is the purpose and importance of this folder? Why does she have that name?

Author: Vinicius Brasil, 2017-09-18

1 answers

In fact, the vendor directory is related to applications developed by third parties that make up the requirements of your application.

What is a 3rd Party and what is its importance for the development of traditional applications?

This directory has no direct relationship to Laravel, as commented in the other answer. In PHP projects this directory is quite common because it is the directory in which the Composer, dependency manager in PHP, uses to organize third-party codes.

The first project as an example, rktlet, uses the package management system Glide, which also defines the directory vendor to store the dependencies. The second project, ytd, seems to use no management system, but still uses the vendor directory by option, following the customs of the community itself.

In short, the directory vendor usually stores third - party project dependencies - this is how much package managers work-but there are no guarantees of that. Projects can exist using the vendor directory even if it has no relation to dependencies. I can very well Store My JavaScript files from my page in a vendor directory. It works, can only get a confused and therefore such practice is not encouraged.

 8
Author: Woss, 2017-09-18 13:06:19