In the PHP world, the vendor folder is the one where dependencies are, and should be listed at the .gitignore file so each one of us can generate it with a simple composer install command.
All good.
BUT..., what happens if I develop a simple package, I publish it in packagist, and then, from my newly created project, I install that package...
...of course it's vendor folder isn't there,
how the package is going to work? how its dependencies work? how all of that work? even if the package has no dependencies, the vendor folder has the autoload files containing the namespace declarations and sol on. packages's vendor folder should be left out the .gitignore file?
Thanks a lot fir the insight.
https://stackoverflow.com/questions/65605743/what-about-the-vendor-folder-of-php-composer-packages January 07, 2021 at 10:08AM
没有评论:
发表评论