1. 程式人生 > >composer新增git倉庫

composer新增git倉庫

composer.json

"require":{
	"teemo/models":"dev-master",  //新增目錄
}
"repositories": [
        {
            "type":"git",
            "url":"git地址" 
        }
    ]

新建一個目錄auth.json

{
  "http-basic":{
    "git地址": {
      "username": "使用者名稱",
      "password": "密碼"
    }
}

執行:

composer config -g secure-http false
composer update