Download the PHP package arsthanea/page-media-set-bundle without Composer

On this page you can find all versions of the php package arsthanea/page-media-set-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 page-media-set-bundle

Page Media Set

This bundle provides an easy way to add a collection of media for each page type in Kunstmaan Bundles CMS.

The main goal is to have a common set of media attachments across many page types without the hassle of upgrading the db schema every time. For instance, think of adding a top page banner with the same dimensions to every page without the need to add the relations themselves to the entities.

Installation:

composer require arsthanea/page-media-set-bundle

After installation, add the PageMediaSetBundle to your kernel and update your db schema / create migration.

Usage

There are three main steps:

  1. Implement the HasMediaSetInterface on your entities. This tells the bundle what types of media will be used for each page.
  2. Configure your media types in symfony configuration (see below)
  3. You now have an additional „Media Set” tab when editing the page where you can set the media

After setting them there are two ways of accessing them:

Twig function

There is a simple helper function in twig templates:

Service in the container

For example in your controller:

Configuration

Available formats

Add to your config.yml or similar:

You need to configure all your media types, but the constraints are optional.

Predefined media set types

You can configure the media set definitions using symfony config, instead of returning them using the getMediaSetDefinition method.

In this case Acme\Foo\Bar\BazEntity::getMediaSetDefinition() won’t be called, foo and bar formats will be used.

Format names

Format names are taken from translations, from messages dictionary using page_media_set.format.%s keys. For instance:

Indexer

If you’re using the search bundle, you may enable indexing page thumbnails. The first defined media will be stored in the elasticsearch document under 'photo' key and then you can use it directly on the search results page.


All versions of page-media-set-bundle with dependencies

PHP Build Version
Package Version
Requires kunstmaan/bundles-cms Version ~4.0 | ~5.0
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 arsthanea/page-media-set-bundle contains the following files

Loading the files please wait ....