Closed jcfrazier6 closed 2 years ago
Cheers! It looks like you have some issues with your php configuration. Here is how to review the messages from composer:
Problem 1
- phpoffice/phpspreadsheet[1.7.0, ..., 1.8.2] require php ^5.6|^7.0 -> your php version (8.1.6) does not satisfy that requirement.
- phpoffice/phpspreadsheet[1.9.0, ..., 1.12.0] require php ^7.1 -> your php version (8.1.6) does not satisfy that requirement.
- phpoffice/phpspreadsheet[1.13.0, ..., 1.14.1] require php ^7.2 -> your php version (8.1.6) does not satisfy that requirement.
☝️ These older versions of phpspreadsheet above will not work with php 8.1.6, so we can exclude them from debugging.
- phpoffice/phpspreadsheet[1.15.0, ..., 1.24.1] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
These more recent versions of phpspreadsheet require ext-gd
. You apparently do not have this turned on in your php.ini file, which is a common situation when running under Windows.
note: this is not an issue with this package. It is an issue with your php configuration.
Here is how to resolve:
php --ini
to find the location of your php.ini file.;extension=gd
and uncomment it by removing the ';' so that you get extension=gd
You may have other messages like this for other extensions, you will have to repeat the same process.
For more information: https://www.php.net/manual/en/install.pecl.windows.php
Github also automatically runs the tests against these versions below, so you can also check on the test results to see what versions were installed and verify that tests pass with the versions you are using: PHP: 7.2.x, 7.3.x, 7.4.x, 8.0.x, 8.1.x Laravel: 5.8, 6.x, 7.x, 8.x, 9.x dbal: 2.x, 3.x
For example, here is a link to the most recent test for the PHP 8.1.x, Laravel 9.x, dbal 3.x build: https://github.com/bfinlay/laravel-excel-seeder/runs/7362243422?check_suite_focus=true
On the left you will see a list of all of the version combinations tested, and when you choose one of those (PHP 8.1.x, Laravel 9.x, dbal 3.x is already chosen by the link above), you will see the logs on the right.
In the logs on the right, if you click on step 4, the composer-install step, it will expand and you can see the version of php on line 11 and the versions of packages that were installed on subsequent lines:
11 PHP version is 8.1.7
...
31 - Locking doctrine/dbal (3.3.7)
...
45 - Locking laravel/framework (v9.20.0)
...
69 - Locking phpoffice/phpspreadsheet (1.24.0)
You can find the test results conveniently by clicking on this button in the README.MD
I am closing this issue, but feel free to add more comments. If there are issues with the package I will investigate.
Problem 1