Yii2下composer 自定义github仓库
文章目录
专栏备份: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/"
}
}

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论