Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rekalogika/file-symfony-bridge
[READ-ONLY] Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
https://github.com/rekalogika/file-symfony-bridge
adapter bridge file file-upload flysystem php symfony symfony-bundle upload
Last synced: about 1 month ago
JSON representation
[READ-ONLY] Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation, Form, and Validator.
- Host: GitHub
- URL: https://github.com/rekalogika/file-symfony-bridge
- Owner: rekalogika
- License: mit
- Created: 2023-09-24T05:11:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-03T15:16:11.000Z (about 1 month ago)
- Last Synced: 2024-10-03T16:07:20.789Z (about 1 month ago)
- Topics: adapter, bridge, file, file-upload, flysystem, php, symfony, symfony-bundle, upload
- Language: PHP
- Homepage: https://rekalogika.dev/file-bundle
- Size: 35.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rekalogika/file-symfony-bridge
Provides integrations for Rekalogika FileInterface with Symfony HttpFoundation,
Form, and Validator.## Features
* Adapters to convert HttpFoundation `File` objects to a `FileInterface` and
vice versa, with special handling for `UploadedFile`.
* `FileResponse` for streaming a `FileInterface` to the client web browser.
* `FileType` form that works with `FileInterface` objects.
* A form transformer `FileTransformer` that you can add to an existing Symfony
`FileType` fields so that it gives us a `FileInterface` instead of a
`UploadedFile` object.
* A form extension `FileTypeExtension` that you can optionally register to
automatically convert all the existing Symfony `FileType` so they all give us
a `FileInterface`.
* Subclassed `FileValidator` and `ImageValidator` that works with
`FileInterface` objects.## Documentation
[rekalogika.dev/file-bundle](https://rekalogika.dev/file-bundle)
## 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](https://github.com/rekalogika/file-src) monorepo.