当前位置: 首页 > 后端技术 > PHP

Yii2下的composer自定义github仓库

时间:2023-03-30 06:15:09 PHP

专栏备份:https://www.bestyii.com/topic/32现在有很多开源项目。有些扩展仍然相互依赖,有时只是一些临时的更改,没有经过Package发布过程。解决办法很简单:克隆原始库,修改代码并发布新版本。将composer.json中的库映射到自己的github地址"repositories":{"0":{"type":"composer","url":"https://asset-packagist.org"},"github":{“type”:“vcs”,“url”:“https://github.com/GrazioX/markdown-latex”},“packagist”:{“type”:“composer”,“url”:“https://mirrors.aliyun.com/composer/"}}