rekalogika / file-symfony-bridge
Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
Fund package maintenance!
priyadi
Installs: 1 281
Dependents: 2
Suggesters: 1
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- rekalogika/file: ^1.11
- rekalogika/file-contracts: ^1.11
- rekalogika/file-metadata-contracts: ^1.11
- symfony/form: ^6.2 || ^7.0
- symfony/http-foundation: ^6.2 || ^7.0
- symfony/validator: ^6.3 || ^7.1
This package is auto-updated.
Last update: 2024-11-28 10:34:36 UTC
README
Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
Features
- 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.
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.