6

I have project's folder dummyProject and inside of it two folders, src and test, and composer.json file. Problem is when i run the composer install command the vendor folder being created in the dummyProject folder. How can i tell composer to create the vendor folder inside src?? thx..

Donoven Rally
  • 1,670
  • 2
  • 17
  • 34
  • possible duplicate of [How to specify Composer install path?](http://stackoverflow.com/questions/11883374/how-to-specify-composer-install-path) – Tomas Votruba Jul 20 '15 at 13:47
  • This answers how to change the name of the folder that we want to serve us instead of `vendor`...i am trying how to figure how to tell composer to create the vendor folder in a different path – Donoven Rally Jul 20 '15 at 13:52

1 Answers1

7

According to the following: https://groups.google.com/forum/#!topic/composer-dev/CS_I0FNMHwY

You can set a Vendor Path like so:

{ 
  "config": { 
    "vendor-dir": "libs/" 
  } 
} 

Looking at this question How to get multiple vendor directories with composer?, it appears you cannot set two different paths for vendor files (not sure if you will need to do this also), but the questions shows that with a symlnk this can be achieved.

Also see the following regarding changing the vendor location: How to specify Composer install path?

Community
  • 1
  • 1
The Humble Rat
  • 4,586
  • 6
  • 39
  • 73