Composer: nothing to install or update

10,130

You are reusing the composer.json file of "aws-sdk-for-php". That is probably not your project. And you are in the wrong folder (PEAR). Don't copy and paste composer.json files... anyway:


  1. Create a new project folder
  2. then simply run composer require katzgrau/klogger:1.2.0

You'll get all dependencies fetched into the vendor folder and a fresh composer.json file for your project.

Share:
10,130
Sandokan
Author by

Sandokan

Updated on June 04, 2022

Comments

  • Sandokan
    Sandokan almost 2 years

    I want install this. I installed composer, set the environment variable path in w10. Edit the composer.json located in this folder:

    C:\Bitnami\wampstack-5.5.29-1\php\PEAR

    with this content:

    {
    "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"
     }
    }
    

    but when I execute this command in my console:

    composer require katzgrau/klogger:dev-master
    

    I get:

    nothing to install or update

    what I did wrong?