Export to Excel in CakePhp 4

Is there a plugin for CakePHP 4 for exporting data to Excel. I’ve found friendsofcake/cakephp-csvview to export to CSV: it works but I’d like to add some text formatting.
There two other ones specific for Excel (cewi/excel and robotusers/cakephp-excel) but it seems that they do now work with CakePHP 4 and haven’t been updated for some time.

Thanks in advance.

PHPSpreadsheet is a general PHP library for this. It’s not CakePHP specific, but it works just fine.