How to get multiple vendor directories with composer?

前端 未结 3 2036
感动是毒
感动是毒 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:06

    I came across the symlink idea but I wanted to automate this instead of manually creating the symlinks. I was going to create a composer script to create the symlink. I then found that symlinks on Windows and *nix need to be created in different ways which made this solution get messier by the second. I found that in the composer docs they talk about this same type of issue on the custom installers page and say that to solve this to create your own custom installer.

    • Relavent docs section: http://getcomposer.org/doc/articles/custom-installers.md
    • My custom installer: https://github.com/ddelrio1986/zf1-public-asset-installer

提交回复
热议问题