All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
order
config property to have better control on the order of algorithm preference (e.g.RESPONSE_COMPRESSION_ORDER=ztsd,br,gzip
)
- lz4 compression algorithm
- Compression algorithm preference based on the ones sent from client (if supported by server)
- Laravel dependencies
- Package rename to
open-southeners/laravel-response-compression
, change allOpenSoutheners\LaravelVaporResponseCompression
toOpenSoutheners\LaravelResponseCompression
- Config file with
*_LEVEL
environment variables for each algorithm compression level, force publishing usingphp artisan vendor:publish --tag="response-compression" --force
CompressionEncoding
is now a backed enum instead with some functionality
- Laravel 9 and 10 support
- PHP 7.4 and 8.0 support
- Composer dependency for zlib PHP extension (not really required)
- zstd compression by @matthewnessworthy [#3]
- Ignore
response()->stream()
,response()->streamDownload()
andresponse()->streamDownload()
responses as files might be already compressed. [#2] - Ignore compression when
Content-Encoding
header already present. [#2]
- PHP 8.2 interpolation deprecations
- Enable option following its environment variable
RESPONSE_COMPRESSION_ENABLE
(default:true
)
- Its dedicated config file (
config/response-compression.php
). Publishable by running the command:php artisan vendor:publish --tag=response-compression
- Initial release!