2017 © Pedro Peláez
 

symfony-bundle mediabundle

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

image

alpixel/mediabundle

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  • Tuesday, January 30, 2018
  • by gouaille
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6,020 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 31 Versions
  • 1 % Grown

The README.md

AlpixelMediaBundle

SensioLabsInsight Build Status StyleCI Scrutinizer Code Quality Latest Stable Version, (*1)

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects., (*2)

Installation

  • Install the package
composer require 'alpixel/mediabundle:~2.0'
  • Update AppKernel.php

<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Alpixel\Bundle\MediaBundle\AlpixelMediaBundle(), ); // ... } // ... }
  • Update DB Schema
php app/console doctrine:schema:update
  • Update your config.yml
twig:
    ...
    form:
        resources:
            - 'AlpixelMediaBundle:Form:fields.html.twig'


alpixel_media:
    upload_folder: "%kernel.root_dir%/../web/upload/"
    allowed_mimetypes: ['image/*', 'application/pdf']

liip_imagine:
    resolvers:
        default:
            web_path:
                web_root: %alpixel_media.upload_folder%
                cache_prefix: filters
    filter_sets:
        cache: ~
        admin:
            quality: 100
            filters:
                auto_rotate: ~
                thumbnail: { size: [140, 93], mode: outbound }
  • Add the routing
alpixel_media:
    resource: '@AlpixelMediaBundle/Resources/config/routing.yml'
  • Use it in front

There is a twig extension capable of generating URLs, you can call it this way :, (*3)

<img src='{{myMedia|media_url}}' />
<img src='{{myMedia|media_url({public: false})}}' />

Available options are : * public : [true]/false should the url be SEO friendly or not ? * absolute : true/[false] should the URL be relative or not ? * action : [show]/download what kind of action is expected. * filter : the liip imagine filter used to render the image. Defaults to null (the original one), (*4)

You can also generate the URL by hand. Just look at the MediaController@showMediaAction to see what are the URL expected., (*5)

The Versions

30/01 2018

dev-master

9999999-dev https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

30/01 2018

2.2.8

2.2.8.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

27/10 2017

2.2.7

2.2.7.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

17/07 2017

2.2.6

2.2.6.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

17/07 2017

2.2.5

2.2.5.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

17/07 2017

2.2.4

2.2.4.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

13/07 2017

2.2.3

2.2.3.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

12/07 2017

2.2.2

2.2.2.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

22/06 2017

2.2.1

2.2.1.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

05/06 2017

2.2.0

2.2.0.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

05/06 2017

2.1.8

2.1.8.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

01/02 2017

2.1.7

2.1.7.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

10/01 2017

2.1.6

2.1.6.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

21/12 2016

2.1.5

2.1.5.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

20/10 2016

2.1.4

2.1.4.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

22/08 2016

2.1.3

2.1.3.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

19/08 2016

2.1.2

2.1.2.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

08/06 2016

2.1.1

2.1.1.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

03/05 2016

2.1

2.1.0.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

03/03 2016

2.0

2.0.0.0 https://www.alpixel.fr

The AlpixelMediaBundle is a bundle managing media of all kinds for our projects.

  Sources   Download

MIT

The Requires

 

by ALPIXEL

symfony2 bundle symfony media alpixel

22/12 2015

1.2.7

1.2.7.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

22/12 2015

1.2.6

1.2.6.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

12/11 2015

1.2.5

1.2.5.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

12/11 2015

1.2.4

1.2.4.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

18/09 2015

1.2.3

1.2.3.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

25/08 2015

1.2.2

1.2.2.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

25/08 2015

1.2.1

1.2.1.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

25/08 2015

1.2

1.2.0.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

25/08 2015

1.1.1

1.1.1.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

31/07 2015

1.1

1.1.0.0

  Sources   Download

The Requires

 

by Benjamin HUBERT

15/07 2015

1.0

1.0.0.0

  Sources   Download

The Requires

 

by Benjamin HUBERT