Ich versuche also,calcinai/xero-phpmit Composer installiert, aber ich erhalte insbesondere diesen Fehler.
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.
Ich habe versucht, beides zu installieren, indem ich es "calcinai/xero-php": "1.5.*"
zu meiner Anforderungsliste hinzugefügt und composer require calcinai/xero-php
in das Terminal eingegeben habe.
Hier ist die aktuelle JSON-Datei:
{
"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/"
}
}
}
Jede Hilfe wäre willkommen.
Antwort1
Ich habe mein Problem gelöst, indem ich in composer.json "version": "1.5.0",
Folgendes hinzugefügt habe:"description"
Antwort2
erfordern: php: >=5.5.0, ext-curl, ext-openssl, calcinai/xero-php: ^1.8
Hier ist die aktuelle JSON-Datei:
{
"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/"
}
}
}