Your Composer dependencies require the following PHP extensions to be installed: gd phpoffice code example
Example: phpoffice/phpspreadsheet[1.1.0, ..., 1.15.0] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension
composer require "ext-gd:*" --ignore-platform-reqs