PHPackages                             braunstetter/media-bundle - 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. [Image &amp; Media](/categories/media)
4. /
5. braunstetter/media-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

braunstetter/media-bundle
=========================

Everything you need in order to upload and manage media files with symfony.

v0.1.9(9mo ago)2638—0%MITPHPPHP ^8.0

Since Jul 29Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Braunstetter/media-bundle)[ Packagist](https://packagist.org/packages/braunstetter/media-bundle)[ RSS](/packages/braunstetter-media-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (11)Used By (0)

MediaBundle
===========

[](#mediabundle)

[![License](https://camo.githubusercontent.com/822a93e0ecd1286bed07bdb8568f85f1dd3a0ddf70ffa5a6acdc1a9ae1158816/687474703a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f6d656469612d62756e646c652f6c6963656e7365)](https://packagist.org/packages/braunstetter/media-bundle)

This Bundle aims to make working with media entities easy.

It provides a general API for everything related to media objects without restricting your flexibility.

- [The BaseFile entity](#the-basefile-entity)
    - [Important methods](#important-methods)
    - [Connecting media entities](#connecting-media-entities)
- [FormTypes](#formtypes)
    - [Full example](#full-example)
    - [Available FormTypes](#available-formtypes)
- [Uploader](#uploader)
    - [FilesystemUploader](#filesystem-uploader)
- [Contributing](#contributing)
    - [Testing](#testing)
    - [Roadmap](#roadmap)

The BaseFile entity
===================

[](#the-basefile-entity)

A doctrine MappedSuperclass your files should always extend.

It provides everything basic you need to get the ball rolling.

Create file `App\Entity\Image`:

```
