I'm working on a project with laravel 5.4. I'm editing an old project and adding some features. But I'm facing a problem with installing excel package that is suitable to this version. I think Maatwebsite/Laravel-Excel v:2.1 could be suitable but how can I install an old version of Maatwebsite/Laravel-Excel since the last version is is 3.1 ?
Asked
Active
Viewed 5,427 times
2
-
Does this answer your question? [How to install a specific version of package using Composer?](https://stackoverflow.com/questions/40914114/how-to-install-a-specific-version-of-package-using-composer) – Nico Haase Jan 11 '20 at 11:22
2 Answers
5
Add
"maatwebsite/excel": "~2.1.0"
in composer and re-install composer packages
or run
composer require maatwebsite/excel:2.1.0

Muhammad Faran Ali
- 499
- 2
- 9
-
-
-
It seems that it won't work with this version mine.It wasn't installed. It seems that even "maatwebsite/excel": "~2.1.0" doen't support this version . – Fateh Alrabeai Dec 28 '19 at 07:24
-
-
if I run composer update, will that affect anything in my project? @Muhammed – Fateh Alrabeai Dec 28 '19 at 07:26
-
-
-
@Developer see, I have update answer by Image. According to that you must be using PHP 7.0 or less then 7.0 – Muhammad Faran Ali Dec 28 '19 at 07:29
1
In addition to verifying PHP version, it seems better to run
composer require maatwebsite/excel:2.1.*
For example, Laravel 5.4 support starts in Maatwebsite/Laravel-Excel 2.1.10 and Laravel 5.5 support in Maatwebsite/Laravel-Excel 2.1.21

rboeg
- 51
- 6