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

Mattiman's avatar

Laravel installer php 8

Trying to install/update the laravel installer I run into this problem:

$ composer global require laravel/installer --with-all-dependencies
Changed current directory to /Users/matthijs/.composer
Using version ^4.2 for laravel/installer
./composer.json has been updated
Running composer update laravel/installer --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/process[v4.2.0, ..., v4.4.10] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.
    - symfony/process[v5.0.0, ..., v5.0.8] require php ^7.2.5 -> your php version (8.0.3) does not satisfy that requirement.
    - Conclusion: don't install laravel/installer v4.2.1 (conflict analysis result)
    - Conclusion: don't install laravel/installer v4.2.2 (conflict analysis result)
etc
etc

I just updated PHP using Homebrew. Now I wanted to update the Laravel installer.

I the Laravel installer not ready for PHP8?

0 likes
8 replies
Mattiman's avatar

Hi @siangboon I tried running composer global update but nothing changes:

$ composer global update
Changed current directory to /Users/matthijs/.composer
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files

If I try the command from the thread you link to:

composer global require laravel/installer -W

I get the exact same results:

$ composer global require laravel/installer -W
Changed current directory to /Users/matthijs/.composer
Using version ^4.2 for laravel/installer
./composer.json has been updated
Running composer update laravel/installer --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/process[v4.2.0, ..., v4.4.10] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.
    - symfony/process[v5.0.0, ..., v5.0.8] require php ^7.2.5 -> your php version (8.0.3) does not satisfy that requirement.
    - Conclusion: don't install laravel/installer v4.2.1 (conflict analysis result)
    - Conclusion: don't install laravel/installer v4.2.2 (conflict analysis result)
    - Conclusion: don't install laravel/installer v4.2.3 (conflict analysis result)

Not sure what's going on. Any idea?

siangboon's avatar

what about try update the composer first?

composer self-update

or

composer global self-update
Mattiman's avatar

Hi @siangboon I tried doing that but it doesn't make a difference

$ composer self-update
You are already using the latest available Composer version 2.0.12 (stable channel).

I don't understand why it says " your php version (8.0.3) does not satisfy that requirement." I would imagine Laravel supports PHP8? https://blog.laravel.com/laravel-php-8-support

$ composer global require laravel/installer -W
Changed current directory to /Users/matthijs/.composer
Using version ^4.2 for laravel/installer
./composer.json has been updated
Running composer update laravel/installer --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/process[v4.2.0, ..., v4.4.10] require php ^7.1.3 -> your php version (8.0.3) does not satisfy that requirement.
    - symfony/process[v5.0.0, ..., v5.0.8] require php ^7.2.5 -> your php version (8.0.3) does not satisfy that requirement.
    - Conclusion: don't install laravel/installer v4.2.1 (conflict analysis result)
siangboon's avatar

as my understanding, usually when see the "latest" version does not satisfy that requirement meant some of the existing dependencies/packages having compatibility issue or not support php 8 yet, you can see what are the packages had installed globally by running the command.

composer global show

perhaps, require the laravel/installer without global, or simply create new project using composer...

Mattiman's avatar

Thanks for the help. When I run that I get:

$ composer global show
Changed current directory to /Users/matthijs/.composer
guzzlehttp/guzzle                6.5.5   Guzzle is a PHP HTTP client library
guzzlehttp/promises              1.4.1   Guzzle promises library
guzzlehttp/psr7                  1.8.1   PSR-7 message implementation that also provides common utility methods
laravel/homestead                v2.2.2  A virtual machine for web artisans.
laravel/installer                v1.5.0  Laravel application installer.
psr/http-message                 1.0.1   Common interface for HTTP messages
psr/log                          1.1.3   Common interface for logging libraries
ralouphie/getallheaders          3.0.3   A polyfill for getallheaders.
symfony/console                  v3.4.47 Symfony Console Component
symfony/debug                    v4.4.20 Provides tools to ease debugging PHP code
symfony/filesystem               v4.4.21 Provides basic utilities for the filesystem
symfony/polyfill-ctype           v1.22.1 Symfony polyfill for ctype functions
symfony/polyfill-intl-idn        v1.22.1 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.22.1 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring        v1.22.1 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72           v1.22.1 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80           v1.22.1 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/process                  v3.4.47 Symfony Process Component

I use composer only for Laravel. So I only install composer and the laravel installer for Laravel. No other things needed so no other dependencies.

Is it possible to completely remove composer and start over again, install a fresh composer installation?

siangboon's avatar

you may remove if there is no project using it. to remove

composer remove <package-name>

may check the help menu for more options

composer help remove
Mattiman's avatar

But it seems that

composer remove <package-name>

is for removing a certain package. What my problem is/seems to be is the global composer app/thing. There's no packages there right?

Please or to participate in this conversation.