https://github.com/netlogix/netlogix.compressingfilesystemstorage
Flow Package that provides a WritableFileSystemStorage with zlib Compression
https://github.com/netlogix/netlogix.compressingfilesystemstorage
compression flow gzip resource-management
Last synced: about 2 months ago
JSON representation
Flow Package that provides a WritableFileSystemStorage with zlib Compression
- Host: GitHub
- URL: https://github.com/netlogix/netlogix.compressingfilesystemstorage
- Owner: netlogix
- License: mit
- Created: 2022-01-05T09:13:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T15:59:20.000Z (over 2 years ago)
- Last Synced: 2024-04-21T01:09:47.391Z (about 1 year ago)
- Topics: compression, flow, gzip, resource-management
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.php.net/manual/en/wrappers.compression.php).
## Installation
```sh
composer require netlogix/compressingfilesystemstorage
```## Configuration
A Flow storage has to be configured with the `CompressingWritableFileSystemStorage`:```yaml
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'
```