triniti / dam
Php library that provides implementations for triniti:dam schemas.
Installs: 8 645
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 17
Forks: 0
Open Issues: 1
Requires
- php: >=7.4
- aws/aws-sdk-php: ^3.52.11
- gdbots/ncr: ^1.0
- triniti/schemas: ^1.0
- twig/twig: ^2.7
Requires (Dev)
- phpunit/phpunit: ^9.1
- triniti/acme-schemas: ^1.0
README
Php library that provides implementations for triniti:dam schemas. Using this library assumes that you've already created and compiled your own pbj classes using the Pbjc and are making use of the "triniti:dam:mixin:*" mixins from triniti/schemas.
Symfony Integration
Enabling these services in a Symfony app is done by importing classes and letting Symfony autoconfigure and autowire them.
config/packages/dam.yml:
services: _defaults: autowire: true autoconfigure: true public: false Triniti\Dam\: resource: '%kernel.project_dir%/vendor/triniti/dam/src/**/*' # Triniti\Dam\S3AssetProjector: '@Acme\Dam\S3AssetProjector' # coming soon
TODO
- Complete implementation for
S3AssetProjector
. - Create
purge-asset
command andasset-purged
event and implement handlers, projectors, etc. Purge will be the ultimate destruction of everything you hold deer, by kid venison. Delete is typically a soft delete (concealed). - Add an errors map that contains the filename hash as the key and any specifics about the error that we want to reveal to the client.