Developed with love by KnpLabs Hire us for your project!
274

SonataMediaBundle

by sonata-project

Media management bundle on steroid for Symfony2

SonataMediaBundle - Media management on steroids

Build Status

The SonataMediaBundle is a media library based on a dedicated provider which handles different type of media: files, videos or images.

Check out the documentation on http://sonata-project.org/bundles/media/master/doc/index.html

Google Groups: For questions and proposals you can post on this google groups

The MIT License

Copyright (c) 2010 thomas.rabaix@sonata-project.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
sonata_media:
db_driver: ~ # Required
default_context: ~ # Required
contexts:

# Prototype
id:
download:
strategy: sonata.media.security.superadmin_strategy
mode: http
providers: []
formats: # Required

# Prototype
id:
width: false
height: false
quality: 80
format: jpg
constraint: true
cdn:
server:
path: /uploads/media
panther:
path: ~ # Required
site_id: ~ # Required
password: ~ # Required
username: ~ # Required
fallback:
master: ~ # Required
fallback: ~ # Required
filesystem:
local:
directory: %kernel.root_dir%/../web/uploads/media
create: false
ftp:
directory: ~ # Required
host: ~ # Required
username: ~ # Required
password: ~ # Required
port: 21
passive: false
create: false
mode: 2
s3:
directory:
bucket: ~ # Required
accessKey: ~ # Required
secretKey: ~ # Required
create: false
storage: standard
cache_control:
acl: public
encryption:
region: s3.amazonaws.com
meta:

# Prototype
name: []
mogilefs:
domain: ~ # Required
hosts: [] # Required
replicate:
master: ~ # Required
slave: ~ # Required
openstack:
url: ~ # Required
secret:
username: ~ # Required
password: ~ # Required
region: ~
containerName: media
create_container: false
rackspace:
url: ~ # Required
secret:
username: ~ # Required
apiKey: ~ # Required
region: ~ # Required
containerName: media
create_container: false
providers:
file:
service: sonata.media.provider.file
resizer: false
filesystem: sonata.media.filesystem.local
cdn: sonata.media.cdn.server
generator: sonata.media.generator.default
thumbnail: sonata.media.thumbnail.format
allowed_extensions:

# Defaults:
- pdf
- txt
- rtf
- doc
- docx
- xls
- xlsx
- ppt
- pptx
- odt
- odg
- odp
- ods
- odc
- odf
- odb
- csv
- xml
allowed_mime_types:

# Defaults:
- application/pdf
- application/x-pdf
- application/rtf
- text/html
- text/rtf
- text/plain
- application/excel
- application/msword
- application/vnd.ms-excel
- application/vnd.ms-powerpoint
- application/vnd.ms-powerpoint
- application/vnd.oasis.opendocument.text
- application/vnd.oasis.opendocument.graphics
- application/vnd.oasis.opendocument.presentation
- application/vnd.oasis.opendocument.spreadsheet
- application/vnd.oasis.opendocument.chart
- application/vnd.oasis.opendocument.formula
- application/vnd.oasis.opendocument.database
- application/vnd.oasis.opendocument.image
- text/comma-separated-values
- text/xml
- application/xml
- application/zip
image:
service: sonata.media.provider.image
resizer: sonata.media.resizer.simple
filesystem: sonata.media.filesystem.local
cdn: sonata.media.cdn.server
generator: sonata.media.generator.default
thumbnail: sonata.media.thumbnail.format
adapter: sonata.media.adapter.image.gd
allowed_extensions:

# Defaults:
- jpg
- png
- jpeg
allowed_mime_types:

# Defaults:
- image/pjpeg
- image/jpeg
- image/png
- image/x-png
youtube:
service: sonata.media.provider.youtube
resizer: sonata.media.resizer.simple
filesystem: sonata.media.filesystem.local
cdn: sonata.media.cdn.server
generator: sonata.media.generator.default
thumbnail: sonata.media.thumbnail.format
html5: false
dailymotion:
service: sonata.media.provider.dailymotion
resizer: sonata.media.resizer.simple
filesystem: sonata.media.filesystem.local
cdn: sonata.media.cdn.server
generator: sonata.media.generator.default
thumbnail: sonata.media.thumbnail.format
vimeo:
service: sonata.media.provider.vimeo
resizer: sonata.media.resizer.simple
filesystem: sonata.media.filesystem.local
cdn: sonata.media.cdn.server
generator: sonata.media.generator.default
thumbnail: sonata.media.thumbnail.format
pixlr:
enabled: false
secret: 4d3ee099e336c93322eb74d7318a2b41bb21fa60
referrer: Sonata Media
class:
media: Application\Sonata\MediaBundle\Entity\Media
gallery: Application\Sonata\MediaBundle\Entity\Gallery
gallery_has_media: Application\Sonata\MediaBundle\Entity\GalleryHasMedia
buzz:
connector: sonata.media.buzz.connector.file_get_contents
client:
ignore_errors: true
max_redirects: 5
timeout: 5
verify_peer: true
proxy: ~
resizer:
simple:
mode: inset
square:
mode: inset
  • Merge pull request #657 from OskarStark/patch-1
    By rande, 2 years ago
  • Merge pull request #658 from OskarStark/patch-2
    By rande, 2 years ago
  • Merge pull request #728 from kix/fix-docs
    By rande, 2 years ago
  • Specify SonataIntlBundle dependency
    By kix, 2 years ago
  • migrate ErrorElement
    By rande, 2 years ago
  • Merge pull request #725 from invit/master
    By rande, 2 years ago
  • fixed declarations
    By toooni, 2 years ago
  • Merge pull request #723 from hanovruslan/api-media-controller-test-fix
    By rande, 2 years ago
  • #api-media-controller-test-fix removed not callable MediaProviderInterface::transform
    By , 2 years ago
  • Merge pull request #712 from Peekmo/patch-1
    By rande, 2 years ago
  • Merge pull request #705 from srascar/media_binary
    By rande, 2 years ago
  • Add method to upload media binary content
    By srascar, 2 years ago
  • Merge pull request #718 from yositani2002/add-ja-translation
    By rande, 2 years ago
  • add japanese translation.
    By yositani2002, 2 years ago
  • Merge pull request #716 from jubalh/master
    By rande, 2 years ago
  • Merge branch 'master' of https://github.com/sonata-project/SonataMediaBundle
    By jubalh, 2 years ago
  • Merge pull request #715 from werdin/feature_ukranian_translation
    By rande, 2 years ago
  • added ukranian translation
    By mykhailo.vilshansky, 2 years ago
  • Add hint about setting context
    By jubalh, 2 years ago
  • Add documentation hint about db_driver
    By jubalh, 2 years ago
  • Remove duplicate AppKernel entry
    By jubalh, 2 years ago
  • [PHPCR] size nullable
    By Peekmo, 2 years ago
  • Merge pull request #710 from sfavot/prevent-error-undefined-index-context
    By rande, 2 years ago
  • Prevent "undefined index: context" error for batch delete action
    By , 2 years ago
  • Merge pull request #708 from AetherFox/master
    By rande, 2 years ago
  • Some russian translations added.
    By , 2 years ago
  • Merge pull request #702 from bdejacobet/api_fixes
    By rande, 2 years ago
  • fix ouput annotation of some gallery methodes
    By bdejacobet, 2 years ago
  • Merge pull request #701 from bdejacobet/api_pagination
    By rande, 2 years ago
  • API Media : implement pagination through PageableManagerInterface
    By bdejacobet, 2 years ago