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

inyansuta's avatar

Cant install Laravel Nova 4 with php 8.2

inertiajs/inertia-laravel[v0.5.2, ..., v0.6.3] require php ^7.2|~8.0.0|~8.1.0 -> your php version (8.2.0) does not satisfy that requirement.

Or full output:

Problem 1 - laravel/nova[4.19.5, ..., 4.22.1] require rap2hpoutre/fast-excel ^3.2|^4.1|^5.0 -> satisfiable by rap2hpoutre/fast-excel[v3.2.0, v4.1.0, v5.0.0, v5.1.0, v5.1.1]. - laravel/nova[4.12.14, ..., 4.19.4] require rap2hpoutre/fast-excel ^3.2|^4.1 -> satisfiable by rap2hpoutre/fast-excel[v3.2.0, v4.1.0]. - laravel/nova[4.5.1, ..., 4.12.13] require rap2hpoutre/fast-excel ^3.2 -> satisfiable by rap2hpoutre/fast-excel[v3.2.0]. - rap2hpoutre/fast-excel[v5.0.0, ..., v5.1.1] require openspout/openspout ^4.1.1 -> satisfiable by openspout/openspout[v4.1.1, ..., v4.12.2]. - rap2hpoutre/fast-excel v4.1.0 requires openspout/openspout ^3 -> satisfiable by openspout/openspout[v3.4.0, ..., v3.7.4]. - rap2hpoutre/fast-excel v3.2.0 requires box/spout ^3 -> satisfiable by box/spout[v3.0.0, ..., v3.3.0]. - laravel/nova[4.0.0, ..., 4.5.0] require inertiajs/inertia-laravel ^0.4.5|^0.5.2 -> satisfiable by inertiajs/inertia-laravel[v0.4.5, v0.5.2, v0.5.3, v0.5.4]. - openspout/openspout[v4.1.1, ..., v4.7.0] require php ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement. - openspout/openspout[v4.8.0, ..., v4.12.2] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension. - box/spout[v3.0.0, ..., v3.3.0] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension. - openspout/openspout[v3.4.0, ..., v3.7.4] require php ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 -> your php version (8.2.0) does not satisfy that requirement. - inertiajs/inertia-laravel v0.4.5 requires laravel/framework ^5.4|^6.0|^7.0|^8.0 -> found laravel/framework[v5.4.0, ..., v5.8.38, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but it conflicts with your root composer.json require (^10.0). - inertiajs/inertia-laravel[v0.5.2, ..., v0.6.3] require php ^7.2|~8.0.0|~8.1.0 -> your php version (8.2.0) does not satisfy that requirement. - Root composer.json requires laravel/nova ~4.0 -> satisfiable by laravel/nova[4.0.0, ..., 4.22.1].

To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\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-zip 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.

0 likes
3 replies
LaryAI's avatar
Level 58

It looks like you are running PHP 8.2.0, which is not compatible with the version of Laravel Nova you are trying to install. The error message is telling you that the version of Laravel Nova you are trying to install requires PHP 7.2 or 8.0/8.1.

You will need to downgrade your version of PHP to one of these versions in order to install Laravel Nova. You can do this by editing your php.ini file and changing the version number.

Alternatively, you can try running Composer with the --ignore-platform-req=ext-zip option to temporarily ignore the required extensions. You can also use the --with-all-dependencies option to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Hope this helps!

inyansuta's avatar

Is it true? Isn't it really possible to use Laravel Nova 4 with PHP 8.2? I have already bought a new server with PHP 8.2. This is a line through the budget ...

inyansuta's avatar
inyansuta
OP
Best Answer
Level 11

Enabling zip extension in php ini solved the problem.

1 like

Please or to participate in this conversation.