# Add new class from library - what is right way?

**URL:** https://discourse.roots.io/t/add-new-class-from-library-what-is-right-way/16251
**Category:** sage
**Created:** 2019-08-01T19:52:28Z
**Posts:** 4
**Showing post:** 3 of 4

## Post 3 by @rerege — 2019-08-02T17:53:29Z

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

---

_[View the full topic](https://discourse.roots.io/t/add-new-class-from-library-what-is-right-way/16251)._
