PHPackages                             pfcode/symfony-attachment-storage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. pfcode/symfony-attachment-storage

ActiveLibrary[Database &amp; ORM](/categories/database)

pfcode/symfony-attachment-storage
=================================

Attachment storage abstraction layer for Doctrine ORM

1.0.3(6y ago)2105MITPHPPHP &gt;=7.1CI failing

Since Mar 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/pfcode/symfony-attachment-storage)[ Packagist](https://packagist.org/packages/pfcode/symfony-attachment-storage)[ RSS](/packages/pfcode-symfony-attachment-storage/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

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

[](#installation)

Add it to your project by:

```
composer require pfcode/symfony-attachment-storage
```

### Sample configuration

[](#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:

```
