Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer, move files from /vendor/ folder

I've just started using composer with PHPStorm 'cause I'm bored of downloading dependencies from github manually. But there are some things I can't understand.

Composer always downloads files into /vendor folder. Like if I add Twitter Bootstrap - it will be downloaded to /vendor/twitter/bootstrap folder. But I need it to be into my /webroot/bootstrap/ directory. How do you move this files? Because if I move it manually - they won't be updated later using composer update command.

Or if I use micro php framevork slim. I've added slim/slim dependency. But it will be placed into /vendor/slim/slim/...

So what should I do? Use Phing or some other deployment tool to move files from /vendor to desired destination? What do you use?

That's not exactly whar I need, but it works for css/js/etc. http://www.phpclasses.org/blog/package/8429/post/1-Using-Composer-to-Install-JavaScript-CSS-and-Images-Under-the-Web-Document-Directory.html

like image 475
Alexey Avatar asked Feb 17 '14 10:02

Alexey


1 Answers

"config": {
    "vendor-dir": "path/to/wherever"
},

in your composer.json file

like image 87
George Wilson Avatar answered Sep 27 '22 20:09

George Wilson