Download the PHP package zeglup/media-bundle without Composer

On this page you can find all versions of the php package zeglup/media-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package media-bundle

SensioLabsInsight

Give credits to Sonata, they inspired this bundle.

Installation

Composer

Minimal configuration

Create a new class and extends it with Donjohn\MediaBundle\Media

LiipImagineBundle

Add this to your config.yml

See LiipImagineBundle Configuration for liip filters configuration

Optional configuration

Change folder for uploaded files

Restrict uploaded file size

Providers

Available providers :

Usage

To insert a media in the twig, use the block with an optional filter name, defined in the liip_imagine.filter_sets section. If you don't provider a filter name, 'reference' filter is default. it will return the original media uploaded with any filter or post processing.

You can also pass class/width/height/alt options to the media rendering:

FormType

An Donjohn\MediaBundle\Form\Type\MediaType is available

provider option default value is null. A guesser will try on the fly to detect the best provider fo each file unless you define the option. The default guess is 'file'.

Set 'allow_delete' option to false if you don't want to allow removing media from an entity. It removes the unlink checkbox in the form.

Set 'create_on_update' option to true if you don't want to update the current media when uploading a file but rather create a new media instead. Old one is not removed.

If you want to upload a collection of Medias set multiple to true.

OneupUploader

For very large files, the bundle includes the Fine Uploader feature thanks to OneUpUploaderBundle.

Don't forget to install fineuploader (bower/npm/...) and include the css/js in your layout (fix path if needed).

Add the OneupUploaderBundle to your AppKernel.php

And to config.yml, add:

You can change the uploaded chunk size or the template used to render the fineuploader frame

Custom MediaProvider

To implement your own provider, extends the BaseProvider and redefine abstract function.
Autowiring should do the job...

Api platform

The bundle is compatible with APIPlatform.


All versions of media-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-gd Version *
ext-mbstring Version *
ext-fileinfo Version *
doctrine/doctrine-bundle Version ^1.6
symfony/form Version ^3.4 || ^4.1
symfony/framework-bundle Version ^3.4 || ^4.1
symfony/security-bundle Version ^3.4 || ^4.1
symfony/twig-bundle Version ^3.4 || ^4.1
symfony/filesystem Version ^3.4 || ^4.1
symfony/validator Version ^3.4 || ^4.1
twig/twig Version ^1.28 || ^2.0
symfony/templating Version ^3.4 || ^4.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zeglup/media-bundle contains the following files

Loading the files please wait ....