How to get multiple vendor directories with composer?

前端 未结 3 2180
感动是毒
感动是毒 2020-12-18 14:00

My project relies on ZF and on a JS library. I wanted to be able to deploy the ZF library to the normal location (vendor/zendframework/zendframework1) but then deploy my JS

3条回答
  •  盖世英雄少女心
    2020-12-18 14:17

    Composer is meant to manage your PHP dependencies, not JS.

    Also, it only supports one vendor folder.

    You might follow the way Symfony bundles use:

    • install everything in vendor
    • link (or copy) public assets to a public directory as part of your deployment process

    In my opinion it's safer than installing something in a public folder (as long as you copy/link public part of a library only).

提交回复
热议问题