pixelpeter / laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API
MIT License
125 stars 48 forks source link

Install error laravel #49

Open t-prod opened 5 years ago

t-prod commented 5 years ago

Hello,

I have this error when I try to install your package in Laravel : Laravel pixelpeter/laravel5-woocommerce-api-client v3.0.0 requires automattic/woocommerce 1.3.* -> satisfiable by automattic/woocommerce[1.3.0] but these conflict with your requirements or minimum-stability. This is my composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0",
        "league/csv": "^9.1",
        "pixelpeter/laravel5-woocommerce-api-client": "3.0"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Do you know how can I fix it ?

t-prod commented 5 years ago

I have think you should change this in your composer.json :

"require": { "php" : "^7.0", "automattic/woocommerce": "1.3.*" },

by

"require": {
    "php" : "^7.0",
    "automattic/woocommerce": "3.*"
  },

Can you do it please ?

pixelpeter commented 5 years ago

There're some changes in the API and the return value with version 2.x I have to check first. Otherwise I will break this package.