gagal download phpspreadsheet di cmd

saya download phpreadsheet respon gagalnya seperti ini?

untuk set php yang belum diaktifkan caranya gimana ya biar bisa aktif dan bisa download phpspreadsheetnya?

terimakasih

c:\xampp\htdocs\composer>composer require phpoffice/phpspreadsheet
Using version ^1.17 for phpoffice/phpspreadsheet
./composer.json has been created
Running composer update phpoffice/phpspreadsheet
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - phpoffice/phpspreadsheet[1.17.0, ..., 1.17.1] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
    - Root composer.json requires phpoffice/phpspreadsheet ^1.17 -> satisfiable by phpoffice/phpspreadsheet[1.17.0, 1.17.1].

To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, deleting ./composer.json.
avatar aziima27
@aziima27

20 Kontribusi 11 Poin

Diperbarui 3 tahun yang lalu

1 Jawaban:

Jawaban Terpilih

<div>belum enable php gd nya, tambah extension=php_gd2.dll di php.ini</div>

avatar aziima27
@aziima27

20 Kontribusi 11 Poin

Dipost 3 tahun yang lalu

Login untuk ikut Jawaban