bigz / s3url
A subscriber for s3 urls in APIs
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bigz/s3url
Requires
- php: >=5.6
- doctrine/annotations: ~1.0
- doctrine/common: ~2.0
- jms/serializer: ^1.0
- vich/uploader-bundle: ^1.8
Requires (Dev)
This package is not auto-updated.
Last update: 2025-10-16 03:26:41 UTC
README
Subscribe to JSON encoding event in jms serializer Decorate with an s3 url the parameters marked with the @uploadedfile annotation
Usage
app.s3_public_url_subscriber:
public: true
class: S3Url\Subscriber\S3PublicUrlSubscriber
arguments: ['@annotations.cached_reader', "%env(AWS_REGION)%", "%env(AWS_BUCKET)%"]
tags:
- { name: jms_serializer.event_subscriber }