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

Compatibility issue with Laravel 10 #171

Open
fh32000 opened this issue Feb 11, 2023 · 9 comments
Open

Compatibility issue with Laravel 10 #171

fh32000 opened this issue Feb 11, 2023 · 9 comments

Comments

@fh32000
Copy link

fh32000 commented Feb 11, 2023

I'm trying to use this package in my Laravel 10 project, but I'm encountering an error related to compatibility. I believe there is a conflict between the requirements of package and Laravel 10. Can you please help me resolve this issue?

{
    "require": {
        "php": "^8.1",
        "laravel/framework": "^10.0",
        "renatomarinho/laravel-page-speed": "^2.1"
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

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

  Problem 1
    - illuminate/support[v6.0.0, ..., v6.19.1] require php ^7.2 -> your php version (8.1.13) does not satisfy that requirement.
    - illuminate/support[v7.0.0, ..., v7.28.4] require php ^7.2.5 -> your php version (8.1.13) does not satisfy that requirement.
    - illuminate/support[v8.0.0, ..., v8.11.2] require php ^7.3 -> your php version (8.1.13) does not satisfy that requirement.
    - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[10.x-dev].
    - renatomarinho/laravel-page-speed 2.1.0 requires illuminate/support ^6.0 || ^7.0 || ^8.0 || ^9.0 -> satisfiable by illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev].
    - Only one of these can be installed: illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev, v9.0.0-beta.1, ..., 9.x-dev], laravel/framework[10.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
    - Root composer.json requires renatomarinho/laravel-page-speed ^2.1 -> satisfiable by renatomarinho/laravel-page-speed[2.1.0].
@fh32000
Copy link
Author

fh32000 commented Feb 13, 2023

@laravel-shift
can you help here

@jasonmccreary
Copy link

I can give it a try - #172

@fh32000
Copy link
Author

fh32000 commented Feb 13, 2023

Thanks man it Work fine 👍🏻

@SirajCse
Copy link

SirajCse commented Feb 26, 2023

just create a folder like vendor-offline/laravel-page-speed and store downloaded package file then change composer file that your need 

in my case for laravel 10 
1. vendor-offline/laravel-page-speed/composer.json

"require": {
"php": "^8.0",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.0|| ^10.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0|| ^8.0",
"squizlabs/php_codesniffer": "^3.6 || ^3.7",
"mockery/mockery": "^1.4"
},

2. laravel composer.json 

"repositories": [
{
"type": "path",
"url": "vendor-offline/laravel-page-speed",
"options": {"symlink": true}
}
],

"require": {
"renatomarinho/laravel-page-speed": "@dev"
}

if already vendor/renatomarinho folder this package remove first
and run command 

`composer update`

This Trick work for all package

@Levivb
Copy link

Levivb commented Apr 1, 2023

Just needs a tag 🥺

@fh32000
Copy link
Author

fh32000 commented Apr 10, 2023

@renatomarinho @joaorobertopb @lucasMesquitaBorges @vinkla
any update here package need tag or new release

@projct1
Copy link

projct1 commented May 8, 2023

I have php 8.1.5 and still got same problem :(

@nasirkhan
Copy link

any update on Laravel 10 support?

@Eri-Silva
Copy link

Olá, como eu alteraria meu arquivo composer.json nesse caso (Já conclui a etapa 1):

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"doctrine/dbal": "^2.6",
"fideloper/proxy": "~3.3",
"intervention/image": "dev-master",
"laravel/framework": "5.5.*",
"laravel/tinker": "~1.0",
"laravelnews/laravel-twbs4": "^1.1",
"renatomarinho/laravel-page-speed": "^1.8",
"simplesoftwareio/simple-qrcode": "^2.0",
"spatie/laravel-cors": "^1.5"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~6.0",
"sven/artisan-view": "^3.2"
},
"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
}
}

Estou tentando resolver o seguinte erro:
Problem 1
- renatomarinho/laravel-page-speed[1.8.0, ..., 1.9.0] require php ^5.6 || ^7.0 -> your php version (8.1.17) does not satisfy that requirement.
- Root composer.json requires renatomarinho/laravel-page-speed ^1.8 -> satisfiable by renatomarinho/laravel-page-speed[1.8.0, ..., 1.9.0].

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

7 participants