mediamonks / sonata-media-bundle
A powerful, flexible and easy to use alternative for the existing Sonata Media Bundle
Installs: 9 424
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 11
Forks: 6
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^7.4|^8.0
- ext-curl: *
- ext-json: *
- doctrine/doctrine-bundle: ^2.0
- league/glide: ^2.0
- oneup/flysystem-bundle: ^4.0
- sonata-project/doctrine-orm-admin-bundle: ^4.0
- sonata-project/form-extensions: ^1.0|^2.0
- sonata-project/twig-extensions: ^1.0|^2.0
- symfony/monolog-bundle: ^3.7
Requires (Dev)
- doctrine/dbal: 3.1.5
- doctrine/doctrine-fixtures-bundle: *
- liip/functional-test-bundle: *
- liip/test-fixtures-bundle: ^2.0
- matthiasnoback/symfony-dependency-injection-test: *
- mikey179/vfsstream: ^2.0|^2.0.x-dev
- mockery/mockery: ^1.0
- php-vcr/php-vcr: ^1.5
- phpunit/phpunit: ^9.0
- sensio/framework-extra-bundle: *
- symfony/symfony: ^5.1|^6.0
README
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 devmonk@mediamonks.com 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.