且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

优化多个Composer VCS存储库路径

更新时间:2023-11-16 23:39:52

我想不出办法

优化的真正潜力处于完全不同的水平:您添加私有存储库的方式要求您始终将每个存储库都添加到根目录中 composer.json 文件,即使软件包没有直接包含在其中。

The real potential for optimization is on a completely different level: The way you are adding private repositories requires you to always add every one of them to the root composer.json file even if the packages are not directly included there.

这是很多维护工作。***是例如使用 Satis 创建本地软件包存储库,并且仅在各处添加此单个信息。使用Satis,您将只添加一次您的私有存储库-然后,是否重复一个URL并不重要。添加新软件包仅在Satis配置中完成一次,然后随处可用。

This is a lot of maintenance work. It would be better if you can for example use Satis to create a local package repository and only add this single info everywhere. Using Satis, you will then only add your private repositories once - and then it doesn't really matter whether or not you repeat a URL. Adding new packages will only be done once in the Satis configuration, and then be available everywhere.