Skip to content

dramentol/SonataMediaBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prototype to easily manage media

Installation

  • Add MediaBundle to your src/Bundle dir

      git submodule add git@github.com:sonata-project/MediaBundle.git src/Bundle/MediaBundle
    
  • add the Imagine bundle (image management) and follow ImagineBundle README

      git submodule add git://github.com/avalanche123/Imagine.git src/vendor/imagine
    
  • Add EasyExtendsBundle to your application kernel

      // app/AppKernel.php
      public function registerBundles()
      {
          return array(
              // ...
              new Bundle\MediaBundle\MediaBundle(),
              // ...
          );
      }
    
  • Add this line into your config.yml file

      media.config:
          class: Bundle\MediaBundle\Provider\Service
    
          settings:
              cdn_enabled: false
              cdn_path:     http://media.sonata-project.org
              public_path: /uploads/media
              private_path: /web/uploads/media
    
    
          providers:
              image:
                  class: Bundle\MediaBundle\Provider\Image
                  formats:
                      small: { width: 100 }
                      big:   { width: 500 }
    
              youtube:
                  class: Bundle\MediaBundle\Provider\YouTube
                  formats:
                      small: { width: 100 }
                      big:   { width: 500 }
    
              dailymotion:
                  class: Bundle\MediaBundle\Provider\DailyMotion
                  formats:
                      small: { width: 100 }
                      big:   { width: 500 }
    

About

Media management bundle on steroid for Symfony2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.8%
  • JavaScript 3.2%