Add new class from library - what is right way?

Thank you strarsis …
I finally decided for another actual library phpoffice/phpspreadsheet
composer install everything
I added to controller
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
and everything works! My technological debt is smaller :wink: Thanks a lot
Ivo