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

swoft:

composer update

报错:Uncaught Error: Class ‘Dotenv\Dotenv’ not found in

composer config -g secure-http false

swoft 配置文件 APP:

'cachekey' => require __DIR__ . DS . 'CacheKey.php',
'components' =>[
    'custom' => [
        "App\\Models\\",
        "APP\\Lib\\",
    ],
],

你可能感兴趣的:(PHP,Web开发)