Sus requisitos no se pudieron resolver en un conjunto de paquetes instalables

Sus requisitos no se pudieron resolver en un conjunto de paquetes instalables

Entonces estoy tratando de conseguircalcinai/xero-phpLo instalé usando Composer pero recibo este error en específico.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package calcinai/xero-php No version set (parsed as 1.0.0) is satisfiable by calcinai/xero-php[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.


Installation failed, reverting ./composer.json to its original content.

Intenté instalar ambos agregándolos "calcinai/xero-php": "1.5.*"a mi lista de requisitos e ingresando composer require calcinai/xero-phpen la terminal.

Aquí está el archivo json actualmente:

{
    "name": "calcinai/xero-php",
    "type": "library",
    "description": "A client implementation of the Xero API, with a cleaner OAuth interface and ORM-like abstraction.",
    "homepage": "https://github.com/calcinai/xero-php",
    "license": "MIT",

    "require": {
        "php": ">=5.5.0",
        "ext-curl": "*",
        "ext-openssl": "*",
        "calcinai/xero-php": "1.5.*"
    },

    "require-dev": {
        "phpunit/phpunit": "~4.7",
        "fabpot/goutte": "~2.0",
        "twig/twig": "1.16.2"
    },

    "repositories": [
    ],

    "autoload": {
        "psr-4": {
            "XeroPHP\\": "src/XeroPHP/"
        }
    }

}

Cualquier ayuda sería apreciada.

Respuesta1

Resolví mi problema agregando "version": "1.5.0",after "description"en compositor.json.

Respuesta2

requiere: php: >=5.5.0, ext-curl, ext-openssl, calcinai/xero-php: ^1.8

Aquí está el archivo json actualmente:

{
    "name": "calcinai/xero-php",
    "type": "library",
    "description": "A client implementation of the Xero API, with a cleaner OAuth interface and ORM-like abstraction.",
    "version": "1.8.6",
    "homepage": "https://github.com/calcinai/xero-php",
    "license": "MIT",

    "require": {
        "php": ">=5.5.0",
        "ext-curl": "*",
        "ext-openssl": "*",
        "calcinai/xero-php": "^1.8"
    },

    "require-dev": {
        "phpunit/phpunit": "~4.7",
        "fabpot/goutte": "~2.0",
        "twig/twig": "1.16.2"
    },

    "repositories": [
    ],

    "autoload": {
        "psr-4": {
            "XeroPHP\\": "src/XeroPHP/"
        }
    }
}

información relacionada