Search code examples
laravel-5.5maatwebsite-excel

How to replace phpoffice/phpexcel with phpoffice/phpspreadsheet


Main error when doing composer install:

Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.

I am using "maatwebsite/excel": "~2.1.0" And Laravel 5.5

I wanna avoid migrating excel to 3.0. I already tried migrating it but it doesn't fit in.


Solution

  • You can try out the following guide, or the mentioned "Automated tool"

    Migration from PHPExcel

    In the meantime, you can specify the complete version number of Excel to continue running updates.