Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
- Adapters to convert HttpFoundation
File
objects to aFileInterface
and vice versa, with special handling forUploadedFile
. FileResponse
for streaming aFileInterface
to the client web browser.FileType
form that works withFileInterface
objects.- A form transformer
FileTransformer
that you can add to an existing SymfonyFileType
fields so that it gives us aFileInterface
instead of aUploadedFile
object. - A form extension
FileTypeExtension
that you can optionally register to automatically convert all the existing SymfonyFileType
so they all give us aFileInterface
. - Subclassed
FileValidator
andImageValidator
that works withFileInterface
objects.
MIT
The rekalogika/file-symfony-bridge
repository is a read-only repo split from
the main repo. Issues and pull requests should be submitted to the
rekalogika/file-src monorepo.