Skip to content

Flow Package that provides a WritableFileSystemStorage with zlib Compression

License

Notifications You must be signed in to change notification settings

netlogix/Netlogix.CompressingFileSystemStorage

Repository files navigation

Netlogix.CompressingFileSystemStorage

Flow package that provides a WritableFileSystemStorage with zlib compression. This storage takes care of compressing and decompressing data on the fly, so no special handling is required from the application side.

Internally, PHP stream wrappers are used to deal with compression. Please refer to the PHP documentation.

Installation

composer require netlogix/compressingfilesystemstorage

Configuration

A Flow storage has to be configured with the CompressingWritableFileSystemStorage:

Neos:
  Flow:
    resource:
      storages:
        nlxCompressingFileSystemStorage_zlib:
          storage: Netlogix\CompressingFileSystemStorage\CompressingWritableFileSystemStorage
          storageOptions:
            path: '%FLOW_PATH_DATA%Persistent/CompressingWritableFileSystemStorage/'
            # Can be any PHP stream wrapper, see https://www.php.net/manual/en/wrappers.compression.php
            streamWrapper: 'compress.zlib'

About

Flow Package that provides a WritableFileSystemStorage with zlib Compression

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages