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

italoestrada's avatar

What excel library can i use for laravel nova

I used to use maatwebsite/laravel-nova-excel in older php versions.

But currently in the last version off nova and php 8.1 looks like

composer require maatwebsite/laravel-nova-excel

y got this:

Problem 1 - phpoffice/phpspreadsheet[1.18.0, ..., 1.22.0] require psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.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. - phpoffice/phpspreadsheet 1.23.0 requires psr/simple-cache ^1.0 || ^2.0 -> found psr/simple-cache[1.0.0, 1.0.1, 2.0.0, 2.x-dev] but the package is fixed to 3.0.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. - maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php version (8.1.4) does not satisfy that requirement. - maatwebsite/excel[3.1.26, ..., 3.1.35] require illuminate/support 5.8.*|^6.0|^7.0|^8.0 -> found illuminate/support[v5.8.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require. - maatwebsite/laravel-nova-excel[1.3.0, ..., 1.3.x-dev] require maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.1.x-dev]. - maatwebsite/excel[3.1.36, ..., 3.1.x-dev] require phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0, ..., 1.23.0]. - Root composer.json requires maatwebsite/laravel-nova-excel ^1.3 -> satisfiable by maatwebsite/laravel-nova-excel[1.3.0, 1.3.1, 1.3.2, 1.3.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. "composer require maatwebsite/laravel-nova-excel:*" to figure out if any version is installable, or "composer require maatwebsite/laravel-nova-excel:^2.1" if you know which you need.

0 likes
1 reply
Lx45_'s avatar

I used this package a few days ago with Laravel 9, PHP 8.1 and nova 4.

Did you try the command with the -W flag ? composer require maatwebsite/laravel-nova-excel -W

Please or to participate in this conversation.