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

johnw65's avatar

Laravel Excel Export Class and not a Package Recommendation

I need the ability to export to MS Excel (xlsx) and was initially researching Mattwebsite Excel that many members seemed to be using. However, my system admin stated that we are unable to support Mattwebsite Excel since it has dependencies (PhpSpreadsheet , php_gd2, and etc) that are not installed on our development and production environment. For example, FPDF has very few dependencies which I'm currently using instead of DOMPDF which requires php-font-lib and php-svg-lib.

Appreciate a list of recommended class/package for Excel that are currently being supported.

0 likes
12 replies
johnw65's avatar

@Sinnbeck , thanks again for your response. Your answers helped me out a great deal. Let me pass this information to my system admin.

Sinnbeck's avatar

@johnw65 Happy to help. It needs these, but most are standard php extensions

ext-dom: *
ext-fileinfo: *
ext-filter: *
ext-libxml: *
ext-xmlreader: *
ext-zip: *
johnw65's avatar

@Sinnbeck , going to send information regarding simple-excel. Will this support PHP 7.x?

Sinnbeck's avatar
composer require spatie/simple-excel ^1.10
johnw65's avatar

@elias102 , as stated above, using PHPSpreadSheet, is not allowed in my environment.

Please or to participate in this conversation.