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

alex32's avatar

Flarum | Composer dependencies require a PHP version ">= 8.2.0"

I changed php version to 8.2 since this was required by Flarum Ext-Manager to work. Now when I try to install Flarum I get the error below. Please help, many thanks.

Laravel 10
Ubuntu 22.04
Php 8.2.15
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0".

My php version is 8.2.15

root@server1:/home/example.com# php -v
PHP 8.2.15 (cli) (built: Jan 20 2024 14:17:05) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.15, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.15, Copyright (c), by Zend Technologies

/laravel/composer.json

   "require": {
        "php": "^8.2.0",    
         ...

flarum.log: empty

https://laracasts.com/discuss/channels/laravel/composer-detected-issues-in-your-platform-your-composer-dependencies-require-a-php-version-810

0 likes
3 replies
gych's avatar

Which version does it show in comsoser.lock ?

alex32's avatar

There are several flarum entities and probably dependencies in composer.lock, here is the core flarum , though the error is about "Composer dependencies.." not Flarum core:

"name": "flarum/core",
            "version": "v1.8.5",
             ....
            "require": {
            "php": ">=7.3 || ^8.0",
            ...

I think it would've been easier to know which dependencies require php >=8.2 , and why the installed php 8.2.15 doesn't get loaded so I could try to reinstall them. Unfortunately, the error msg doesn't seems to help much. I deleted composer.lock but it gets recreated as before with the same error. Many thanks

Please or to participate in this conversation.