laravel5-woocommerce-api-client icon indicating copy to clipboard operation
laravel5-woocommerce-api-client copied to clipboard

Install error laravel

Open t-prod opened this issue 7 years ago • 2 comments

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 avatar Feb 18 '19 20:02 t-prod

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 ?

t-prod avatar Feb 18 '19 21:02 t-prod

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.

pixelpeter avatar Feb 19 '19 04:02 pixelpeter