如何要求同一软件包的两个版本? [英] How to require two versions of the same package?

查看:80
本文介绍了如何要求同一软件包的两个版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我需要使用两个版本的twitter bootstrap(v2.x和v3.x),两个用于后端,三个用于前端。
是否可以同时要求两者并告诉作曲家将它们安装在不同的目录中?

in my project i need to use two versions of twitter bootstrap (v2.x and v3.x) 2 for the backend and 3 for the frontend. is it somehow possible to require both and tell composer to install them in different directoreies?

类似的东西:

   {
       "name": "acme/hello-world",
       "require": {
           "twitter/bootstrap": "2.3.*",
           "twitter/bootstrap": "3.0.* as 'twitter/bootstrap3'" 
       }
   }


推荐答案

您不需要两个版本,您的应用程序只能使用一个版本的软件包。

You can't require two version, your application should only use one version of a package.

这篇关于如何要求同一软件包的两个版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆