The PhpSpreadsheet docs explain how you’d incorporate their library into any PHP application, which includes a WordPress plugin.
composer require phpoffice/phpspreadsheet
on the command line (in your plugin’s root directory) will ensure that the required library|ies are installed. Then, in the plugin’s code,
…will load the required PHP files and set you up to read and write XLSX files.
Without knowing more about how PhpSpreadsheets works, it’s hard to say much more. You’ll have to explore their documentation to see how to use their product. Note that third-party product support is off topic here.
If you’re not comfortable writing a plugin, and there’s not one already in the WP ecosystem that does what you need, you’ll have to find someone who can and will do it for you.