gupalo/symfony-response-helpers

Symfony Response Helpers

Installs: 3 743

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/gupalo/symfony-response-helpers

1.2.0 2024-07-17 14:43 UTC

This package is auto-updated.

Last update: 2025-09-17 17:07:58 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.