gupalo/symfony-response-helpers

Symfony Response Helpers

Maintainers

Package info

github.com/gupalo/symfony-response-helpers

pkg:composer/gupalo/symfony-response-helpers

Statistics

Installs: 3 829

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.3 2026-03-27 18:25 UTC

This package is auto-updated.

Last update: 2026-03-27 18:26:06 UTC


README

PublicFileResponse

Create BinaryFileResponse with correct headers for static files.

PublicFileResponse::create($dir, $slug)

$slug can be filename, can be part of url like:

* `/path/to/file.jpg?key=value&k2=v2#somehash`
* `path/without/left/slash.png`

Other

See tests.