Giter VIP home page Giter VIP logo

symfony-sonata-media-bundle's Introduction

Build Status Scrutinizer Code Quality Code Coverage Total Downloads Latest Stable Version Latest Unstable Version SensioLabs Insight License

MediaMonksSonataMediaBundle

This bundle is an alternative to the existing Sonata Media Bundle.

The concept of this bundle is to provide an easy method of uploading different kinds of media to your admin with an easy method of displaying thumbnails and embeds. It is assumed you have some kind of persistent storage behind a CDN or reverse proxy where you place your images on and your CDN or reverse proxy can cache redirect headers to prevent end users hitting your web servers.

Features

  • Supports many file systems to store the media (S3, Azure, Google Cloud, (S)FTP, Rackspace)
  • Supports image uploads, file uploads, YouTube, Vimeo & SoundCloud
  • Supports a private and public storage
  • Generate thumbnails with various options
  • Caches redirects to your images in your CDN or reverse proxy by using cache control headers
  • Embed media with Twig filters

Documentation

Please refer to the files in the /docs folder.

System Requirements

You need:

  • PHP >= 7.4
  • Symfony Framework >= 5.1
  • Sonata Admin >= 4.0
  • Flysystem >= 4.0
  • Glide >= 2.0

To use the library.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

  • Sonata Project for creating their Media Bundle which was obviously the main inspiration for this alternative bundle
  • Flysystem for accessing different kinds of file systems
  • Glide for providing a great api to do image manipulation

License

The MIT License (MIT). Please see License File for more information.

symfony-sonata-media-bundle's People

Contributors

b-galati avatar ceesvanegmond avatar marcobrotas avatar mediamonks-robert avatar rodrigocatalano avatar slootjes avatar thanarie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

symfony-sonata-media-bundle's Issues

Ckeditor integration?

As this is an alternative to the SonataMediaBundle, I wonder if there's a way use this bundle with Ckeditor.

Error: No default option is configured for constraint Symfony\Component\Validator\Constraints\File

When setting up the file/image constraints like this:

image_constraints:
        - minWidth: 100
        - minHeight: 100
        - maxWidth: 8000
        - maxHeight: 8000
file_constraints:
        - maxSize: '20M'
        - extensions: ['pdf', 'csv', 'txt', 'docx', 'mp3']

When using the validator version:

symfony/validator v4.1.6

I have this error:

Error: No default option is configured for constraint Symfony\Component\Validator\Constraints\File

It's fixed if I use this format:

    image_constraints: {minWidth: 100, minHeight: 100, maxWidth: 8000, maxHeight: 8000}
    file_constraints: {maxSize: '20M', extensions: ['pdf', 'csv', 'txt', 'docx', 'mp3']}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.