Download the PHP package pfcode/symfony-attachment-storage without Composer
On this page you can find all versions of the php package pfcode/symfony-attachment-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pfcode/symfony-attachment-storage
More information about pfcode/symfony-attachment-storage
Files in pfcode/symfony-attachment-storage
Package symfony-attachment-storage
Short Description Attachment storage abstraction layer for Doctrine ORM
License MIT
Informations about the package symfony-attachment-storage
Symfony Attachment Storage
This library provides abstraction layer for storage of attachments (images, videos and any files) that are indexed in database accessed by Doctrine ORM. Created with extensibility in mind, allows developer to quickly integrate their own storage platforms, slug generation methods and attachment download methods.
Installation
Add it to your project by:
Sample configuration
First of all, you need to create a Doctrine entity that implements Pfcode\AttachmentStorage\Entity\AttachmentInterface
and implement its getters and setters. Here is an example:
Then, you should register a few services in your config/services.yml
file:
Extending components
All components of this library are created with extensibility in mind, so you can implement available interfaces or
create new classes of existing services, register them in your services.yml
file and reference them in other
services' configuration.
License
This library is released under MIT license.
All versions of symfony-attachment-storage with dependencies
ext-curl Version *
ext-fileinfo Version *
ralouphie/mimey Version ^2.1
doctrine/orm Version ^2.7
symfony/http-foundation Version ^3.0 || ^4.0 || ^5.0