Create a Zip File in PHP

Select files to create zip and upload. Allowed files are images, pdf and text file. Each file should be less than 2MB