Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ChristophAust's avatar

php-http/guzzle6-adapter[v2.0.0, ..., v2.0.1] require php ^7.1 -> your php version (8.1.13) does not satisfy that requirement

Hi there,

so I recently had a shift and my version was updated to Laravel 9. Running "composer update" I receive those errors and I am scratching my head a bit to solve those. Composer is not my strong foot, I admit:

composer update                          
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - php-http/guzzle6-adapter[v2.0.0, ..., v2.0.1] require php ^7.1 -> your php version (8.1.13) does not satisfy that requirement.
    - php-http/guzzle6-adapter[v2.0.2, ..., 2.x-dev] require guzzlehttp/guzzle ^6.0 -> found guzzlehttp/guzzle[6.0.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.2).
    - Root composer.json requires php-http/guzzle6-adapter ^2.0 -> satisfiable by php-http/guzzle6-adapter[v2.0.0, v2.0.1, v2.0.2, 2.x-dev].

Anyone able to help me, or even explain a sentence or two, what's going on here? IN case it is needed, here is the whole composer.json:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^8.0",
        "aws/aws-sdk-php-laravel": "^3.7",
        "berkayk/onesignal-laravel": "^1.0.3",
        "cartalyst/stripe-laravel": "^14.0",
        "dawson/youtube": "dev-master",
        "doctrine/dbal": "^2.13",
        "dusterio/laravel-aws-worker": "^0.1.30",
        "guzzlehttp/guzzle": "^7.2",
        "imdhemy/laravel-purchases": "^0.10.3",
        "intervention/image": "^2.7",
        "laravel-notification-channels/onesignal": "^2.4",
        "laravel/cashier": "^13.7",
        "laravel/framework": "^9.42",
        "laravel/helpers": "^1.5",
        "laravel/tinker": "^2.7",
        "laravel/ui": "^3.3",
        "laravelium/sitemap": "^8.0",
        "league/flysystem-aws-s3-v3": "^3.0",
        "mailgun/mailgun-php": "^3.5",
        "nyholm/psr7": "^1.4",
        "php-http/guzzle6-adapter": "^2.0",
        "php-open-source-saver/jwt-auth": "^2.0",
        "predis/predis": "^1.1",
        "rap2hpoutre/laravel-log-viewer": "^2.1",
        "spatie/laravel-backup": "^8.0",
        "stil/gd-text": "^1.1",
        "symfony/http-client": "^6.0"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.6",
        "beyondcode/laravel-dump-server": "^1.8",
        "filp/whoops": "^2.14",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^6.3",
        "phpunit/phpunit": "^9.5.10",
        "fakerphp/faker": "^1.9.1",
        "spatie/laravel-ignition": "^1.4"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "platform": {
            "ext-pcntl": "8.0",
            "ext-posix": "8.0"
          }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "files": [
            "app/Http/helpers.php"
        ],
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ]
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/ChrAus/youtube"
        }
    ]
}
0 likes
29 replies
illuminatixs's avatar

Hi there,

Your requirement: "php-http/guzzle6-adapter": "^2.0", is requiring php ^7.1 while your php version used in composer update was 8.1.13 and thus does not match the requirement of the package.

Next to that, the same package requires: guzzlehttp/guzzle ^6.0 while your composer.json file has a specific requirement on: "guzzlehttp/guzzle": "^7.2", and thus also mismatches with php-http/guzzle6-adapter. To fix this, you need to check if the php-http/guzzle6-adapter has a version available for Laravel 9.

ChristophAust's avatar

@illuminatixs @illuminatixs hi there, thank you for answering. So I was trying to fight my way through today, but I do not quite understand it. I am trying to find out, what actually needs this guzzle6 adapter. It seems it is a mailgun package, not sure which one though.

Sinnbeck's avatar

Try removing this line from composer.json and run composer update again

"php-http/guzzle6-adapter": "^2.0",
1 like
ChristophAust's avatar

@Sinnbeck I receive this:

Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires dawson/youtube ^6.0, it is satisfiable by dawson/youtube[6.0.0] from composer repo (https://repo.packagist.org) but dawson/youtube[dev-master] from vcs repo (github https://github.com/ChrAus/youtube) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical     - Conclusion: don't install guzzlehttp/guzzle 6.5.2 (conflict analysis result)
    - spatie/laravel-backup[8.0.2, ..., v8.x-dev] require league/flysystem ^3.0 -> satisfiable by league/flysystem[3.0.0, ..., 3.x-dev].
    - league/flysystem[3.0.0, ..., 3.x-dev] conflict with guzzlehttp/guzzle <7.0.
    - Root composer.json requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev].

To enable extensions, verify that they are enabled in your .ini files:
    - C:\webaccess\php8_x64\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-pcntl` to temporarily ignore these required extensions.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

So I ran

composer update --ignore-platform-req=ext-pcntl

and received that:

Problem 1
    - Root composer.json requires dawson/youtube ^6.0 -> satisfiable by dawson/youtube[6.0.0].
    - dawson/youtube 6.0.0 requires php ^7.0 -> your php version (8.1.13) does not satisfy that requirement.
  Problem 2
    - Conclusion: don't install guzzlehttp/guzzle 6.5.2 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.3 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.4 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.7 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.8 (conflict analysis result)
    - league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev] conflict with guzzlehttp/guzzle <7.0.
    - Root composer.json requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev].
    - Root composer.json requires league/flysystem-aws-s3-v3 ^3.0 -> satisfiable by league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
ChristophAust's avatar

@Sinnbeck I tried that, but got this:

composer remove dawson/youtube                 
./composer.json has been updated
Running composer update dawson/youtube
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Dependency laravel/framework is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires cartalyst/stripe-laravel ^14.0, found cartalyst/stripe-laravel[v14.0.0, 14.x-dev] but the package is fixed to v13.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 2
    - Root composer.json requires laravel/cashier ^13.7, found laravel/cashier[v13.7.0, ..., 13.x-dev] but the package is fixed to v12.17.2 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 3
    - Root composer.json requires laravel/framework ^9.42, found laravel/framework[v9.42.0, ..., 9.x-dev] but the package is fixed to v8.83.26 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 4
    - Root composer.json requires league/flysystem-aws-s3-v3 ^3.0, found league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev] but the package is fixed to 1.0.30 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 5
    - Root composer.json requires rap2hpoutre/laravel-log-viewer ^2.1, found rap2hpoutre/laravel-log-viewer[v2.1.0, v2.2.0] but the package is fixed to v1.7.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 6
    - Root composer.json requires spatie/laravel-backup ^8.0, found spatie/laravel-backup[8.0.0, ..., v8.x-dev] but the package is fixed to 6.16.5 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 7
    - Root composer.json requires symfony/http-client ^6.0, found symfony/http-client[v6.0.0-BETA1, ..., 6.3.x-dev] but the package is fixed to v5.4.15 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 8
    - Root composer.json requires nunomaduro/collision ^6.3, found nunomaduro/collision[v6.3.0, v6.3.1, v6.x-dev] but the package is fixed to v5.11.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Removal failed, reverting ./composer.json to its original content.
Removal failed, dawson/youtube is still present, it may be required by another package. See `composer why dawson/youtube`.
ChristophAust's avatar

@Sinnbeck Yes, I did that just a second ago:

composer update --ignore-platform-req=ext-pcntl
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install guzzlehttp/guzzle 6.5.2 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.3 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.4 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.7 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.8 (conflict analysis result)
    - league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev] conflict with guzzlehttp/guzzle <7.0.
    - Root composer.json requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev].
    - Root composer.json requires league/flysystem-aws-s3-v3 ^3.0 -> satisfiable by league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Shall I try this?

--with-all-dependencies (-W)
ChristophAust's avatar

@Sinnbeck I tried that and got into the next issue, so I removed the line "guzzlehttp/guzzle" too and got this:

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - 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 laravelium/sitemap ^8.0 -> satisfiable by laravelium/sitemap[8.0.1, 8.x-dev].
    - Conclusion: don't install laravel/framework v9.42.1 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.42.2 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.43.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.44.0 (conflict analysis result)
    - Conclusion: don't install laravel/framework v9.42.0 (conflict analysis result)
    - laravelium/sitemap[8.0.1, ..., 8.x-dev] require illuminate/support ^8.0 -> satisfiable by illuminate/support[v8.0.0, ..., 8.x-dev].
    - Only one of these can be installed: illuminate/support[v4.0.0-BETA2, ..., 4.2.x-dev, v5.0.0, ..., 5.8.x-dev, 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[v9.42.0, ..., 9.x-dev]. laravel/framework replaces illuminate/support and thus cannot coexist with it.
    - Root composer.json requires laravel/framework ^9.42 -> satisfiable by laravel/framework[v9.42.0, ..., 9.x-dev].
jhoncarter12's avatar

@Sinnbeck Thanks dude as this helped in my project as well. As I'm searching for hours and this hinted me how to solve mine error.

ChristophAust's avatar

@Sinnbeck removed that as well and ended up with that:

composer update --ignore-platform-req=ext-pcntl --with-all-dependencies
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install guzzlehttp/guzzle 6.5.2 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.3 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.4 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.7 (conflict analysis result)
    - Conclusion: don't install guzzlehttp/guzzle 6.5.8 (conflict analysis result)
    - league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev] conflict with guzzlehttp/guzzle <7.0.
    - Root composer.json requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev].
    - Root composer.json requires league/flysystem-aws-s3-v3 ^3.0 -> satisfiable by league/flysystem-aws-s3-v3[3.0.0, ..., 3.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Thank you for your patience. I feel bad but I am really not good in this composer thing.

ChristophAust's avatar

@Sinnbeck I removed the guzzle line and composer update ran through, now I face the next thing:

composer update --ignore-platform-req=ext-pcntl --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 13 installs, 66 updates, 17 removals
  - Removing asm89/stack-cors (v2.1.1)
  - Removing dawson/youtube (dev-master 3616751)
  - Removing facade/flare-client-php (1.10.0)
  - Removing facade/ignition (2.17.6)
  - Removing facade/ignition-contracts (1.0.2)
  - Removing fruitcake/laravel-cors (v2.2.0)
  - Removing google/apiclient (v2.12.6)
  - Removing google/apiclient-services (v0.272.1)
  - Removing laravelium/sitemap (8.0.1)
  - Removing opis/closure (3.6.3)
  - Removing paragonie/constant_time_encoding (v2.6.3)
  - Removing paragonie/random_compat (v9.99.100)
  - Removing php-http/guzzle6-adapter (v2.0.2)
  - Removing phpseclib/phpseclib (3.0.17)
  - Removing swiftmailer/swiftmailer (v6.3.0)
  - Removing symfony/polyfill-iconv (v1.26.0)
  - Removing symfony/polyfill-php73 (v1.26.0)
  - Upgrading aws/aws-sdk-php (3.240.9 => 3.253.2)
  - Upgrading brick/math (0.9.3 => 0.10.2)
  - Upgrading cartalyst/stripe-laravel (v13.1.0 => v14.0.0)
  - Upgrading dusterio/laravel-aws-worker (v0.1.32 => v0.1.36)
  - Upgrading egulias/email-validator (2.1.25 => 3.2.1)
  - Upgrading fakerphp/faker (v1.20.0 => v1.21.0)
  - Locking fruitcake/php-cors (v1.2.0)
  - Upgrading google/auth (v1.23.1 => v1.24.0)
  - Upgrading guzzlehttp/guzzle (6.5.8 => 7.5.0)
  - Upgrading guzzlehttp/psr7 (1.9.0 => 2.4.3)
  - Upgrading laravel/cashier (v12.17.2 => v13.16.0)
  - Upgrading laravel/framework (v8.83.26 => v9.44.0)
  - Upgrading laravel/tinker (v2.7.2 => v2.7.3)
  - Upgrading lcobucci/clock (2.0.0 => 2.2.0)
  - Upgrading league/commonmark (2.3.7 => 2.3.8)
  - Upgrading league/config (v1.1.1 => v1.2.0)
  - Upgrading league/flysystem (1.1.10 => 3.11.0)
  - Upgrading league/flysystem-aws-s3-v3 (1.0.30 => 3.10.3)
  - Upgrading moneyphp/money (v3.3.3 => v4.0.5)
  - Upgrading nesbot/carbon (2.62.1 => 2.64.0)
  - Upgrading nette/schema (v1.2.2 => v1.2.3)
  - Upgrading nikic/php-parser (v4.15.1 => v4.15.2)
  - Upgrading nunomaduro/collision (v5.11.0 => v6.3.1)
  - Locking nunomaduro/termwind (v1.14.2)
  - Upgrading phpunit/php-code-coverage (9.2.18 => 9.2.21)
  - Upgrading phpunit/phpunit (9.5.26 => 9.5.27)
  - Upgrading psr/cache (1.0.1 => 3.0.0)
  - Locking psr/clock (1.0.0)
  - Upgrading psr/container (1.1.2 => 2.0.2)
  - Upgrading psr/log (1.1.4 => 3.0.0)
  - Upgrading psr/simple-cache (1.0.1 => 3.0.0)
  - Upgrading psy/psysh (v0.11.8 => v0.11.9)
  - Upgrading ramsey/uuid (4.2.3 => 4.6.0)
  - Upgrading rap2hpoutre/laravel-log-viewer (v1.7.0 => v2.2.0)
  - Locking spatie/backtrace (1.2.1)
  - Upgrading spatie/db-dumper (2.21.1 => 3.3.0)
  - Locking spatie/flare-client-php (1.3.1)
  - Locking spatie/ignition (1.4.1)
  - Upgrading spatie/laravel-backup (6.16.5 => 8.1.5)
  - Locking spatie/laravel-ignition (1.6.2)
  - Locking spatie/laravel-package-tools (1.13.7)
  - Locking spatie/laravel-signal-aware-command (1.2.0)
  - Upgrading spatie/temporary-directory (1.3.0 => 2.1.1)
  - Locking stella-maris/clock (0.1.7)
  - Upgrading stripe/stripe-php (v7.128.0 => v9.9.0)
  - Upgrading symfony/console (v5.4.15 => v6.2.1)
  - Upgrading symfony/css-selector (v5.4.11 => v6.2.0)
  - Upgrading symfony/deprecation-contracts (v2.5.2 => v3.2.0)
  - Upgrading symfony/error-handler (v5.4.15 => v6.2.1)
  - Upgrading symfony/event-dispatcher (v5.4.9 => v6.2.0)
  - Upgrading symfony/event-dispatcher-contracts (v2.5.2 => v3.2.0)
  - Upgrading symfony/finder (v5.4.11 => v6.2.0)
  - Upgrading symfony/http-client (v5.4.15 => v6.2.0)
  - Upgrading symfony/http-client-contracts (v2.5.2 => v3.1.1)
  - Upgrading symfony/http-foundation (v5.4.15 => v6.2.1)
  - Upgrading symfony/http-kernel (v5.4.15 => v6.2.1)
  - Locking symfony/mailer (v6.2.1)
  - Upgrading symfony/mime (v5.4.14 => v6.2.0)
  - Upgrading symfony/options-resolver (v5.4.11 => v6.2.0)
  - Upgrading symfony/polyfill-ctype (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-intl-grapheme (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-intl-icu (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-intl-idn (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-intl-normalizer (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-mbstring (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-php72 (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-php80 (v1.26.0 => v1.27.0)
  - Upgrading symfony/polyfill-php81 (v1.26.0 => v1.27.0)
  - Locking symfony/polyfill-uuid (v1.27.0)
  - Upgrading symfony/process (v5.4.11 => v6.2.0)
  - Upgrading symfony/psr-http-message-bridge (v2.1.3 => v2.1.4)
  - Upgrading symfony/routing (v5.4.15 => v6.2.0)
  - Upgrading symfony/service-contracts (v2.5.2 => v3.1.1)
  - Upgrading symfony/string (v5.4.15 => v6.2.0)
  - Upgrading symfony/translation (v5.4.14 => v6.2.0)
  - Upgrading symfony/translation-contracts (v2.5.2 => v3.2.0)
  - Locking symfony/uid (v6.2.0)
  - Upgrading symfony/var-dumper (v5.4.14 => v6.2.1)
  - Upgrading voku/portable-ascii (1.6.1 => 2.0.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 13 installs, 66 updates, 17 removals
  - Downloading voku/portable-ascii (2.0.1)
  - Downloading symfony/css-selector (v6.2.0)
  - Downloading symfony/var-dumper (v6.2.1)
  - Downloading symfony/polyfill-uuid (v1.27.0)
  - Downloading symfony/uid (v6.2.0)
  - Downloading symfony/routing (v6.2.0)
  - Downloading symfony/mime (v6.2.0)
  - Downloading symfony/event-dispatcher-contracts (v3.2.0)
  - Downloading symfony/event-dispatcher (v6.2.0)
  - Downloading psr/log (3.0.0)
  - Downloading egulias/email-validator (3.2.1)
  - Downloading symfony/mailer (v6.2.1)
  - Downloading symfony/http-foundation (v6.2.1)
  - Downloading symfony/error-handler (v6.2.1)
  - Downloading symfony/http-kernel (v6.2.1)
  - Downloading symfony/finder (v6.2.0)
  - Downloading brick/math (0.10.2)
  - Downloading ramsey/uuid (4.6.0)
  - Downloading psr/simple-cache (3.0.0)
  - Downloading nunomaduro/termwind (v1.14.2)
  - Downloading symfony/translation-contracts (v3.2.0)
  - Downloading symfony/translation (v6.2.0)
  - Downloading nesbot/carbon (2.64.0)
  - Downloading league/flysystem (3.11.0)
  - Downloading nette/schema (v1.2.3)
  - Downloading league/config (v1.2.0)
  - Downloading league/commonmark (2.3.8)
  - Downloading fruitcake/php-cors (v1.2.0)
  - Downloading laravel/framework (v9.44.0)
  - Downloading guzzlehttp/psr7 (2.4.3)
  - Downloading guzzlehttp/guzzle (7.5.0)
  - Downloading aws/aws-sdk-php (3.253.2)
  - Downloading cartalyst/stripe-laravel (v14.0.0)
  - Downloading dusterio/laravel-aws-worker (v0.1.36)
  - Downloading fakerphp/faker (v1.21.0)
  - Downloading psr/cache (3.0.0)
  - Downloading google/auth (v1.24.0)
  - Downloading symfony/psr-http-message-bridge (v2.1.4)
  - Downloading stripe/stripe-php (v9.9.0)
  - Downloading moneyphp/money (v4.0.5)
  - Downloading laravel/cashier (v13.16.0)
  - Downloading laravel/tinker (v2.7.3)
  - Downloading psr/clock (1.0.0)
  - Downloading stella-maris/clock (0.1.7)
  - Downloading lcobucci/clock (2.2.0)
  - Downloading league/flysystem-aws-s3-v3 (3.10.3)
  - Downloading symfony/options-resolver (v6.2.0)
  - Downloading nunomaduro/collision (v6.3.1)
  - Downloading phpunit/php-code-coverage (9.2.21)
  - Downloading phpunit/phpunit (9.5.27)
  - Downloading rap2hpoutre/laravel-log-viewer (v2.2.0)
  - Downloading spatie/backtrace (1.2.1)
  - Downloading spatie/temporary-directory (2.1.1)
  - Downloading spatie/laravel-package-tools (1.13.7)
  - Downloading spatie/laravel-signal-aware-command (1.2.0)
  - Downloading spatie/db-dumper (3.3.0)
  - Downloading spatie/laravel-backup (8.1.5)
  - Downloading spatie/flare-client-php (1.3.1)
  - Downloading spatie/ignition (1.4.1)
  - Downloading spatie/laravel-ignition (1.6.2)
  - Downloading symfony/http-client-contracts (v3.1.1)
  - Downloading symfony/http-client (v6.2.0)
  - Removing symfony/polyfill-php73 (v1.26.0)
  - Removing symfony/polyfill-iconv (v1.26.0)
  - Removing swiftmailer/swiftmailer (v6.3.0)
  - Removing phpseclib/phpseclib (3.0.17)
  - Removing php-http/guzzle6-adapter (v2.0.2)
  - Removing paragonie/random_compat (v9.99.100)
  - Removing paragonie/constant_time_encoding (v2.6.3)
  - Removing opis/closure (3.6.3)
  - Removing laravelium/sitemap (8.0.1)
  - Removing google/apiclient-services (v0.272.1)
  - Removing google/apiclient (v2.12.6)
  - Removing fruitcake/laravel-cors (v2.2.0)
  - Removing facade/ignition-contracts (1.0.2)
  - Removing facade/ignition (2.17.6)
  - Removing facade/flare-client-php (1.10.0)
  - Removing dawson/youtube (dev-master 3616751)
  - Removing asm89/stack-cors (v2.1.1)
  - Upgrading voku/portable-ascii (1.6.1 => 2.0.1): Extracting archive
  - Upgrading symfony/polyfill-php80 (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/polyfill-mbstring (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/polyfill-ctype (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/css-selector (v5.4.11 => v6.2.0): Extracting archive
  - Upgrading symfony/var-dumper (v5.4.14 => v6.2.1): Extracting archive
  - Installing symfony/polyfill-uuid (v1.27.0): Extracting archive
  - Installing symfony/uid (v6.2.0): Extracting archive
  - Upgrading symfony/routing (v5.4.15 => v6.2.0): Extracting archive
  - Upgrading symfony/process (v5.4.11 => v6.2.0): Extracting archive
  - Upgrading symfony/polyfill-php72 (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/polyfill-intl-normalizer (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/polyfill-intl-idn (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/mime (v5.4.14 => v6.2.0): Extracting archive
  - Upgrading psr/container (1.1.2 => 2.0.2): Extracting archive
  - Upgrading symfony/service-contracts (v2.5.2 => v3.1.1): Extracting archive
  - Upgrading symfony/event-dispatcher-contracts (v2.5.2 => v3.2.0): Extracting archive
  - Upgrading symfony/event-dispatcher (v5.4.9 => v6.2.0): Extracting archive
  - Upgrading psr/log (1.1.4 => 3.0.0): Extracting archive
  - Upgrading egulias/email-validator (2.1.25 => 3.2.1): Extracting archive
  - Installing symfony/mailer (v6.2.1): Extracting archive
  - Upgrading symfony/deprecation-contracts (v2.5.2 => v3.2.0): Extracting archive
  - Upgrading symfony/http-foundation (v5.4.15 => v6.2.1): Extracting archive
  - Upgrading symfony/error-handler (v5.4.15 => v6.2.1): Extracting archive
  - Upgrading symfony/http-kernel (v5.4.15 => v6.2.1): Extracting archive
  - Upgrading symfony/finder (v5.4.11 => v6.2.0): Extracting archive
  - Upgrading symfony/polyfill-intl-grapheme (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading symfony/string (v5.4.15 => v6.2.0): Extracting archive
  - Upgrading symfony/console (v5.4.15 => v6.2.1): Extracting archive
  - Upgrading symfony/polyfill-php81 (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading brick/math (0.9.3 => 0.10.2): Extracting archive
  - Upgrading ramsey/uuid (4.2.3 => 4.6.0): Extracting archive
  - Upgrading psr/simple-cache (1.0.1 => 3.0.0): Extracting archive
  - Installing nunomaduro/termwind (v1.14.2): Extracting archive
  - Upgrading symfony/translation-contracts (v2.5.2 => v3.2.0): Extracting archive
  - Upgrading symfony/translation (v5.4.14 => v6.2.0): Extracting archive
  - Upgrading nesbot/carbon (2.62.1 => 2.64.0): Extracting archive
  - Upgrading league/flysystem (1.1.10 => 3.11.0): Extracting archive
  - Upgrading nette/schema (v1.2.2 => v1.2.3): Extracting archive
  - Upgrading league/config (v1.1.1 => v1.2.0): Extracting archive
  - Upgrading league/commonmark (2.3.7 => 2.3.8): Extracting archive
  - Installing fruitcake/php-cors (v1.2.0): Extracting archive
  - Upgrading laravel/framework (v8.83.26 => v9.44.0): Extracting archive
  - Upgrading guzzlehttp/psr7 (1.9.0 => 2.4.3): Extracting archive
  - Upgrading guzzlehttp/guzzle (6.5.8 => 7.5.0): Extracting archive
  - Upgrading aws/aws-sdk-php (3.240.9 => 3.253.2): Extracting archive
  - Upgrading cartalyst/stripe-laravel (v13.1.0 => v14.0.0): Extracting archive
  - Upgrading dusterio/laravel-aws-worker (v0.1.32 => v0.1.36): Extracting archive
  - Upgrading fakerphp/faker (v1.20.0 => v1.21.0): Extracting archive
  - Upgrading psr/cache (1.0.1 => 3.0.0): Extracting archive
  - Upgrading google/auth (v1.23.1 => v1.24.0): Extracting archive
  - Upgrading symfony/psr-http-message-bridge (v2.1.3 => v2.1.4): Extracting archive
  - Upgrading symfony/polyfill-intl-icu (v1.26.0 => v1.27.0): Extracting archive
  - Upgrading stripe/stripe-php (v7.128.0 => v9.9.0): Extracting archive
  - Upgrading moneyphp/money (v3.3.3 => v4.0.5): Extracting archive
  - Upgrading laravel/cashier (v12.17.2 => v13.16.0): Extracting archive
  - Upgrading nikic/php-parser (v4.15.1 => v4.15.2): Extracting archive
  - Upgrading psy/psysh (v0.11.8 => v0.11.9): Extracting archive
  - Upgrading laravel/tinker (v2.7.2 => v2.7.3): Extracting archive
  - Installing psr/clock (1.0.0): Extracting archive
  - Installing stella-maris/clock (0.1.7): Extracting archive
  - Upgrading lcobucci/clock (2.0.0 => 2.2.0): Extracting archive
  - Upgrading league/flysystem-aws-s3-v3 (1.0.30 => 3.10.3): Extracting archive
  - Upgrading symfony/options-resolver (v5.4.11 => v6.2.0): Extracting archive
  - Upgrading nunomaduro/collision (v5.11.0 => v6.3.1): Extracting archive
  - Upgrading phpunit/php-code-coverage (9.2.18 => 9.2.21): Extracting archive
  - Upgrading phpunit/phpunit (9.5.26 => 9.5.27): Extracting archive
  - Upgrading rap2hpoutre/laravel-log-viewer (v1.7.0 => v2.2.0): Extracting archive
  - Installing spatie/backtrace (1.2.1): Extracting archive
  - Upgrading spatie/temporary-directory (1.3.0 => 2.1.1): Extracting archive
  - Installing spatie/laravel-package-tools (1.13.7): Extracting archive
  - Installing spatie/laravel-signal-aware-command (1.2.0): Extracting archive
  - Upgrading spatie/db-dumper (2.21.1 => 3.3.0): Extracting archive
  - Upgrading spatie/laravel-backup (6.16.5 => 8.1.5): Extracting archive
  - Installing spatie/flare-client-php (1.3.1): Extracting archive
  - Installing spatie/ignition (1.4.1): Extracting archive
  - Installing spatie/laravel-ignition (1.6.2): Extracting archive
  - Upgrading symfony/http-client-contracts (v2.5.2 => v3.1.1): Extracting archive
  - Upgrading symfony/http-client (v5.4.15 => v6.2.0): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
Sinnbeck's avatar

@ChristophAust so everything installs correctly but dump fails? I don't see any error message except

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

Which tells me nothing

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

@ChristophAust my guess is that you have somethibg bound from one of the removed packages (like in app.php), but normally composer says exactly what

Try deleting /vendor perhaps

1 like
ChristophAust's avatar

@Sinnbeck when you refer to app.php I assume you mean config/app.php. I do not see anything there. I found something in AppServiceProvider, commenting it out, did not help though:

public function register()
    {
        $this->app->bind('mailgun.client', function () {
            return \Http\Adapter\Guzzle6\Client::createWithConfig([
                // your Guzzle6 configuration
            ]);
        });
        Cashier::ignoreMigrations();

        if ($this->app->environment('local')) {
            //
        }
    }
ChristophAust's avatar

@Sinnbeck can I not get a more detailed description of what failed here?

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
Sinnbeck's avatar

@ChristophAust I have never had that error so I'm unsure. Maybe delete the script from composer.json for now and add it back when everything works

ChristophAust's avatar

@Sinnbeck you helped me a lot though. I am working on windows, so I had to look up the log path in php.ini.

In the log I found this:

PHP Fatal error:  Uncaught Error: Call to undefined method Illuminate\Support\Facades\Cache::has() in

I found the use of Cache:: in some autoloaded files, trying to work my way through that.

ChristophAust's avatar

@Sinnbeck Ok, I got it. You were right regarding app.php, I had this one still in there:

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
       [...]
        Dawson\Youtube\YoutubeServiceProvider::class,

Commenting that out and using the cache() helper instead of Cache:: in the helper functions worked! Thank you 1.000 times!

ChristophAust's avatar

@Sinnbeck not the first time. Can I buy you a coffee somehow or so? You are a lifesaver in here, much appreciated!

Sinnbeck's avatar

@ChristophAust it's alright. Just mark the thread as solved :) I do this as a hobby so I don't expect anything but a thank you

2 likes
newbie360's avatar

i hope OP has a backup before run composer update

next time may be try composer install first

newbie360's avatar

@Sinnbeck yep, i know, for me i will backup the project folder first just in case

and i remember composer update will update all package

but composer install is check composer.lock only

Sinnbeck's avatar

@newbie360 yup but in this case we want the newest versions as we are upgrading major versions

Please or to participate in this conversation.