Skip to content

filegator/process_archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ProcessArchiver

Alternative ZIP processing adapter for FileGator. It uses OS process to perform zip/unzip operations instead of php-zip extension. Experimental, do not use on production.

Installation

  1. Go to filegator folder and install Proccess lib with composer:
composer require symfony/process
  1. Put the ProcessArchiver.php file into filegator's folder filegator/backend/Services/Archiver/Adapters/

  2. Replace your current ArchiverInterface section in your configuration.php file with this:

        'Filegator\Services\Archiver\ArchiverInterface' => [
            'handler' => '\Filegator\Services\Archiver\Adapters\ProcessArchiver',
            'config' => [
                'zip_binary' => 'zip',      // or '/usr/bin/zip'
                'unzip_binary' => 'unzip',  // or '/usr/bin/unzip'
                'tmp_path' => __DIR__.'/private/tmp/',
            ],
        ],

Known issues

  • UTF8 file names encoding can be garbled
  • Not tested on windows/mac

About

Alternative ZIP processing adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages