Я пытаюсь установить пакет mPDF, и когда я запускаю команду composer require mpdf/mpdf
, отображаются следующие ошибки:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.
Problem 2
- mpdf/mpdf v8.0.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- mpdf/mpdf v8.0.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- mpdf/mpdf v8.0.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- Installation request for mpdf/mpdf ^8.0 -> satisfiable by mpdf/mpdf[v8.0.0, v8.0.1, v8.0.2].
To enable extensions, verify that they are enabled in your .ini files:
- C:\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
Можно ли просто загрузить mPDF и поместить его в мое рабочее репо? Или я должен использовать Composer для его установки? Я пытался найти эти ошибки, и я думаю, что единственным решением было бы установить chocolatey, а затем использовать его для установки php7.3.2-gd
, но если есть лучшее решение, пожалуйста, дайте мне знать!