Cyber-Duck / laravel-excel

This package provides a way to export an Eloquent collection as an excel file and to import a Excel file as an Eloquent collection.
https://www.cyber-duck.co.uk
MIT License
73 stars 26 forks source link

Not working with php 8.0 #25

Open manadinho opened 2 years ago

manadinho commented 2 years ago

I am trying to upgrade laravel application from php 7.3 to php 8.0. And I am facing this error.

worzy commented 2 years ago

Hi @manadinho what error are you seeing? Can you share?

manadinho commented 2 years ago

Thanks @worzy for the reply. here is what I am seeing in console.. Problem 2

manadinho commented 2 years ago

And if i remove composer.lock than it gives this error:

[InvalidArgumentException]
Package cyber-duck/laravel-excel at version ^2.1 has requirements incompatible with your PHP version, PHP extensions and Composer version:

cparello commented 1 year ago

with php8 and laravel 9 i get this error, any ideas?

Importer::make('Csv')->load(storage_path('app') . $reportName)->getCollection();

syntax error, unexpected identifier "reader", expecting variable

tomastan commented 1 year ago

Confirming. It does not install on PHP8 and Laravel 9

Problem 2 - cyber-duck/laravel-excel is locked to version 2.2.0 and an update of this package was not requested. - cyber-duck/laravel-excel 2.2.0 requires php ^7.3 -> your php version (8.0.22) does not satisfy that requirement.

philBrown commented 7 months ago

How about you guys cut a release with this commit in it?

That or deprecate a dead project