How to get multiple vendor directories with composer?(如何使用作曲家获取多个供应商目录?)
问题描述
我的项目依赖于 ZF 和一个 JS 库.我希望能够将 ZF 库部署到正常位置(vendor/zendframework/zendframework1),然后将我的 JS 库部署到其他地方(public/my-vendor/my-library).有没有办法做到这一点?
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 library to somewhere else (public/my-vendor/my-library). Is there anyway to do this?
推荐答案
我遇到了符号链接的想法,但我想自动化这个而不是手动创建符号链接.我打算创建一个作曲家脚本来创建符号链接.然后我发现 Windows 和 *nix 上的符号链接需要以不同的方式创建,这使得这个解决方案变得更加混乱.我发现在作曲家文档中,他们在自定义安装程序页面上讨论了相同类型的问题,并说要解决此问题以创建您自己的自定义安装程序.
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.
- 相关文档部分:http://getcomposer.org/doc/articles/custom-安装程序.md
- 我的自定义安装程序:https://github.com/ddelrio1986/zf1-public-资产安装程序
这篇关于如何使用作曲家获取多个供应商目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用作曲家获取多个供应商目录?
基础教程推荐
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何替换eregi() 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
