ZipArchive class not found
I am trying to export an object data including column names, save it as csv file and zip it. I have written a php to do the job and running it from File Manager. I am able to create, export data and save csv file. While trying to zip the file, it shows error saying "Class ZipArchive not found".
I tried google and found that zip functionality has to be enabled on php OR found few suggesting to install necessary software etc.
lines of code for zip is attached below.
any suggestions please?