我想安装this。
我安装了composer,在w10中设置环境变量路径。
修改此文件夹中的composer.json
:
C:\ Bitnami \ wampstack-5.5.29-1 \ PHP \ PEAR
有了这个内容:
{
"name":"amazonwebservices/aws-sdk-for-php",
"description":"AWS SDK for PHP",
"keywords":["aws","amazon","sdk","s3","ec2","dynamodb"],
"type":"library",
"license":"Apache-2.0",
"authors":[
{
"name":"Amazon Web Services",
"homepage":"http://aws.amazon.com"
}
],
"homepage": "http://aws.amazon.com/sdkforphp/",
"require":{
"php":">=5.2.0"
},
"autoload":{
"classmap": [
"authentication/",
"extensions/",
"lib/",
"services/",
"utilities/",
"sdk.class.php"
]
}
}
{
"require": {
"katzgrau/klogger": "dev-master"
}
}
但是当我在我的控制台中执行此命令时:
composer require katzgrau/klogger:dev-master
我明白了:
无需安装或更新
我做错了什么?
答案 0 :(得分:2)
您正在重用“aws-sdk-for-php”的composer.json文件。
那可能不是你的项目。你在错误的文件夹(PEAR)。
不要复制并粘贴composer.json
个文件......
composer require katzgrau/klogger:1.2.0
您将获取所有依赖项并将其提取到供应商文件夹中,并为项目提供新的composer.json
文件。