Supported Versions: PHP 5 >= 5.4.0, PHP 7, PHP 8
Decodes a gzip compressed string
<?php gzdecode(string $data, int $max_length = 0): string|false
<?php     public function testItHandlesGzippedBodyPayloadsWhenCreatingServerRequestInterfaceInstances()

    {

        Route::post('test-route', function (ServerRequestInterface $request) {

            return gzdecode((string) $request->getBody());

        });



        $response = $this->call('POST', 'test-route', content: file_get_contents(__DIR__.'/Fixtures/laravel.txt.gz'));