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

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
s3:
bucket: ~ # Required
accessKey: ~ # Required
secretKey: ~ # Required
password: ~ # Required
create: false
mogilefs:
domain: ~ # Required
hosts: [] # Required
replicate:
master: ~ # Required
slave: ~ # Required
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
- pttx
- 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
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
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: 2a86f93d8976ee307ec6e4146b9d4be9b491ad55
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
resizer:
simple:
mode: inset
square:
mode: inset
  • Merge pull request #313 from Zertz/patch-1
    By rande, 2 days ago
  • Merge pull request #321 from grizzlylab/master
    By rande, 2 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago
  • Update composer.json
    By rande, 6 days ago