per-seo/gzip

Gzip compression for Slim 4

1.0.1 2025-08-01 15:31 UTC

This package is auto-updated.

Last update: 2025-08-01 15:33:13 UTC


README

A simple middleware for Slim4 framework that add GZIP compression to the output. Usage is very simple, just enable this Middleware (in the Middleware part of your Slim4 Project) with:

<?php

use PerSeo\Middleware\GZIP\GZIP;

$app->add(GZIP::class);

After this, your Slim 4 project returns a GZIP compressed page if browser support it.