filestack/FilestackClient.php
public function zip($sources, $store_options = [])
    {
        $transform_tasks = [
            'zip' => []
        ];

        if (!empty($store_options)) {
            $transform_tasks['store'] = $store_options;
        }

        $sources_str = '[' . implode(',', $sources) . ']';

        // call TransformationMixin
        $result = $this->sendTransform($sources_str, $transform_tasks, $this->security);
        return $result;
    }
public function zip($sources, $store_options = [])
    {
        $transform_tasks = [
            'zip' => []
        ];

        if (!empty($store_options)) {
            $transform_tasks['store'] = $store_options;
        }

        $sources_str = '[' . implode(',', $sources) . ']';

        // call TransformationMixin
        $result = $this->sendTransform($sources_str, $transform_tasks, $this->security);
        return $result;
    }
public function zip ( $ sources , $ store_options = [ ] ) { $ transform_tasks = [ 'zip' => [ ] ] ; if ( ! empty ( $ store_options ) ) { $ transform_tasks [ 'store' ] = $ store_options ; } $ sources_str = '[' . implode ( ',' , $ sources ) . ']' ; // call TransformationMixin $ result = $ this -> sendTransform ( $ sources_str , $ transform_tasks , $ this -> security ) ; return $ result ; }
Bundle an array of files into a zip file.  This task takes the file or files
that are passed in the array and compresses them into a zip file.  Sources can
be handles, urls, or a mix of both

@param array     $sources        Filestack handles and urls to zip
@param array     $store_options  Optional store options

@throws FilestackException   if API call fails, e.g 404 file not found

@return Filestack/Filelink or file content
Bundle an array of files into a zip file . This task takes the file or files that are passed in the array and compresses them into a zip file . Sources can be handles urls or a mix of both