I'm working on a Yii2 rest Api that's connected to AngularJS front end.
I'm trying to build an actionDownloadAsExcel
method that can help me download a specific model. What would be a good way to do this?
I installed "phpOffice\phpExcel" but I don't really know how to use it for my purpose.