i wanna import and view excel file using php, so i have a found a library class php-excel-reader
when we use php, we just include the file in the page using include("nameoffile.php");
i don’t know how to do that using symfony.
where should i import ? and how?`
This is for PHPExcel as opposed to the reader but the principle is the same. No need to actually include files. They can be autoloaded.
Add to your autoload.php:
After which you can do something like:
Note the leading slash is required to handle the non-namespaced library.
I abstracted things just a bit by using a service: