PHPackages                             agence-adeliom/easy-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. agence-adeliom/easy-media-bundle

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

agence-adeliom/easy-media-bundle
================================

A Symfony Media manager bundle for EasyAdmin

3.0.2(3mo ago)3016.8k↑118.8%22[2 issues](https://github.com/agence-adeliom/easy-media-bundle/issues)[3 PRs](https://github.com/agence-adeliom/easy-media-bundle/pulls)2MITPHPPHP &gt;=8.2

Since Oct 8Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/agence-adeliom/easy-media-bundle)[ Packagist](https://packagist.org/packages/agence-adeliom/easy-media-bundle)[ Docs](https://github.com/agence-adeliom/easy-media-bundle)[ RSS](/packages/agence-adeliom-easy-media-bundle/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependencies (20)Versions (141)Used By (2)

[![Adeliom](https://camo.githubusercontent.com/cfcea17cd5354fe5c47c2873d4ec93e8d84e1468240bc616fdfb9196dc032093/68747470733a2f2f6164656c696f6d2e636f6d2f7075626c69632f75706c6f6164732f323031372f30392f4164656c696f6d5f6c6f676f2e706e67)](https://camo.githubusercontent.com/cfcea17cd5354fe5c47c2873d4ec93e8d84e1468240bc616fdfb9196dc032093/68747470733a2f2f6164656c696f6d2e636f6d2f7075626c69632f75706c6f6164732f323031372f30392f4164656c696f6d5f6c6f676f2e706e67)[![Quality gate](https://camo.githubusercontent.com/ff4c0fc10d2489b0c6fd04acecadb5f51990cd77f09ff87064ea4a672c676bd7/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f7175616c6974795f676174653f70726f6a6563743d6167656e63652d6164656c696f6d5f656173792d6d656469612d62756e646c65)](https://sonarcloud.io/dashboard?id=agence-adeliom_easy-media-bundle)

Easy Media Bundle
=================

[](#easy-media-bundle)

A VueJS media-manager for Easyadmin.

Versions
--------

[](#versions)

Repository BranchVersionSymfony CompatibilityPHP CompatibilityStatus`3.x``3.x``6.4`, and `7.x``8.2` or higherNew features and bug fixes`2.x``2.x``5.4`, and `6.x``8.0.2` or higherBug fixes`1.x``1.x``4.4`, and `5.x``7.2.5` or higherNo longer maintainedFeatures
--------

[](#features)

- Image editor
- Multi
    - Upload
    - Move
    - Delete
- Upload by either
    - Using the upload panel
    - Drag&amp;Drop anywhere
    - Click&amp;Hold on an empty area **"items container"**
    - From a url **"images only"**
    - From a url rich embed element like Youtube video
- Preview files before uploading
- Toggle between `random/original` names for uploaded files
- Bulk selection
- Bookmark visited directories for quicker navigation
- Change item/s visibility
- Update the page url on navigation
- Show audio files info **"artist, album, year, etc.."**
- Dynamically hide files / folders
- Restrict access to path
- Download selected "including bulk selection"
- Directly copy selected file link
- Use the manager
    - from modal
    - with any wysiwyg editor
- Auto scroll to selected item using **"left, up, right, down, home, end"**
- Lock/Unlock item/s.
- Filter by
    - Folder
    - Image
    - Audio
    - Oembed
    - Video
    - text/pdf
    - application/archive
    - Locked items
    - Selected items
- Sort by
    - Name
    - Size
    - Last modified
- Items count for
    - All
    - Selected
    - Search found
- File name sanitization for
    - Upload
    - Rename
    - New folder
- Disable/Enable buttons depend on the usage to avoid noise &amp; keep the user focused
- [Shortcuts / Gestures](doc/shortcuts.md)
    - If no more **rows** available, pressing `down` will go to the last item in the list **"same as native file manager"**.
    - When viewing a `audio/video` file in the preview card, pressing `space` will **play/pause** the item instead of closing the modal.
    - Double click/tap
        - any file of type `audio/video/oembed` will open it in the preview card **"same as images"**.
        - any file of type `application/archive` will download it.
    - All the **left/right** gestures have their counterparts available as well.
    - Pressing `esc` while using the ***image editor*** wont close the modal but you can ***dbl click/tap*** the `modal background` to do so. **"to avoid accidentally canceling your changes"**.

> To stop interfering with other `keydown` events you can toggle the manager listener through `EventHub.fire('disable-global-keys', true/false)`.

Installation with Symfony Flex
------------------------------

[](#installation-with-symfony-flex)

Add our recipes endpoint

```
{
  "extra": {
    "symfony": {
      "endpoint": [
        "https://api.github.com/repos/agence-adeliom/symfony-recipes/contents/index.json?ref=flex/main",
        ...
        "flex://defaults"
      ],
      "allow-contrib": true
    }
  }
}
```

Install with composer

```
composer require agence-adeliom/easy-media-bundle
```

#### Without Symfony Flex

[](#without-symfony-flex)

```
# config/packages/easy_media.yaml

twig:
  form_themes:
    - '@EasyMedia/form/easy-media.html.twig'

doctrine:
  dbal:
    types:
      easy_media_type: Adeliom\EasyMediaBundle\Types\EasyMediaType

flysystem:
  storages:
    medias.storage:
      adapter: 'local'
      options:
        directory: '%kernel.project_dir%/var/storage/medias'

easy_media:
  storage_name: medias.storage
  media_entity: App\Entity\EasyMedia\Media
  folder_entity: App\Entity\EasyMedia\Folder
```

```
# config/routes/easy_media.yaml

easy_media:
  resource: '@EasyMediaBundle/Resources/config/routes.xml'
  prefix: /admin

easy_media_public:
  resource: '@EasyMediaBundle/Resources/config/public_routes.xml'
  prefix: /
```

```
