Search code examples
excellaravelmaatwebsite-excel

Error installing maatwebsite/excel on laravel 10.48.4


Im trying to install maatwebsite/excel for a project and the problem that i have is that when i do it installs the 1.1 version which is unsupported instead of the 3.3. Im currently using Laravel Framework 10.48.4 and PHP 8.2 version.

I need to use the 3.3 version because i need to implement in the project excels import. But when i run the command it appears the following:

enter image description here


Solution

  • The problem was in the php.ini file with commented line extension=gd.

    Note: It is important to uncomment this line because Matt-Excel download requires .gd extension. Otherwise, it won't allow you to download the file.