Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing composer require spatie/laravel-webhook-client #24

Closed
UdyW opened this issue Oct 2, 2019 · 1 comment
Closed

Error installing composer require spatie/laravel-webhook-client #24

UdyW opened this issue Oct 2, 2019 · 1 comment

Comments

@UdyW
Copy link

UdyW commented Oct 2, 2019

I'm trying to install this package in a Lumen project.
composer require spatie/laravel-webhook-client

But I'm getting the error;

  [InvalidArgumentException]                                                                                           
  Package spatie/laravel-webhook-client at version  has a PHP requirement incompatible with your PHP version (7.1.23)  

My composer.json;

{
"name": "laravel/lumen",
"description": "The Laravel Lumen Framework.",
"keywords": ["framework", "laravel", "lumen"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.1.3",
"dusterio/lumen-passport": "^0.2.15",
"laravel/lumen-framework": "5.8.*"
},
"require-dev": {
"fzaninotto/faker": "^1.4",
"phpunit/phpunit": "^7.0",
"mockery/mockery": "^1.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/"
]
},
"scripts": {
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}

@UdyW
Copy link
Author

UdyW commented Oct 2, 2019

I have fixed this by adding

    "platform": {
        "php": "7.3"
    }

in to the config section of the composer.jason file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant