Can you show your composer.json
Feb 20, 2023
6
Level 63
Laravel-Excel with PHP 8.2
Hello,
I'm trying Laravel 10.x and I want to install Laravel-Excel (last version). I have this error.
Problem 1
- maatwebsite/excel[3.1.46, ..., 3.1.47] require phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0, ..., 1.27.1].
- maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php version (8.2.2) 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, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- maatwebsite/excel[3.1.36, ..., 3.1.45] require illuminate/support 5.8.*|^6.0|^7.0|^8.0|^9.0 -> found illuminate/support[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0] but these were not loaded, likely because it conflicts with another require.
- phpoffice/phpspreadsheet[1.18.0, ..., 1.27.1] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
- Root composer.json requires maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.1.47].
With PHP 8.1, it works fine.
I'm really not good at finding how to solve this type of problem.
Can you help me ?
Thanks a lot ;).
Vincent
Level 102
@vincent15000 Ok. Try starting out with fixing the error
require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
3 likes
Please or to participate in this conversation.