version: 2.1.3







zip

convert all of files in selected path to zip and then save it in dest path, NOTE : this will not zip folders and subFiles , maybe added in feature updates

Parameters

path string The location you want to zip all of it files Yes
dest string The location you want to save zip file Yes

Method errors

ErrorNamedescription
path parameter not found parameter path not founded , set it like example
dest parameter not found parameter dest not founded , set it like example
zip extension not found You must install or enable zip extension otherwise you can't use this method

Method examples

$this->zip(['path'=>'xFolder','dest'=>'yFolder/xFile.zip']);

Method alices

There is no alices

Method output :

Boolean