rekalogika / file-symfony-bridge
Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
Fund package maintenance!
2.4.2
2026-05-09 15:55 UTC
Requires
- php: ^8.2
- rekalogika/file: ^2.4.2
- rekalogika/file-contracts: ^2.4.2
- rekalogika/file-metadata: ^2.4.2
- rekalogika/file-metadata-contracts: ^2.4.2
- symfony/form: ^6.2 || ^7.0 || ^8.0
- symfony/http-foundation: ^6.2 || ^7.0 || ^8.0
- symfony/validator: ^6.3 || ^7.1 || ^8.0
This package is auto-updated.
Last update: 2026-06-09 16:17:37 UTC
README
Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
Features
- Adapters to convert HttpFoundation
Fileobjects to aFileInterfaceand vice versa, with special handling forUploadedFile. FileResponsefor streaming aFileInterfaceto the client web browser.FileTypeform that works withFileInterfaceobjects.- A form transformer
FileTransformerthat you can add to an existing SymfonyFileTypefields so that it gives us aFileInterfaceinstead of aUploadedFileobject. - A form extension
FileTypeExtensionthat you can optionally register to automatically convert all the existing SymfonyFileTypeso they all give us aFileInterface. - Subclassed
FileValidatorandImageValidatorthat works withFileInterfaceobjects.
Documentation
License
MIT
Contributing
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.