Download the PHP package umanit/block-collection-bundle without Composer

On this page you can find all versions of the php package umanit/block-collection-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 block-collection-bundle

Umanit Block Collection Bundle

A collection of blocks ready to use with umanit/block-bundle.

Prerequisites

  1. Install and configure FOSCKEditorBundle
  2. Install and configure ArtgrisMediaBundle
    • The assets' installation is not necessary because they're all rewrite in this bundle, you only need to declare the bundle and his routing.
  3. Install and configure UmanitBlockBundle

Front requirements

Install

Register the bundle to your config/bundles.php

Add one of the Twig's form theme

Add @umanit/block-collection-bundle dev-dependency in your package.json. This part is automatically done if you use Flex in your projet.

Add stimulus controllers to your assets/controllers.json. This part is automatically done if you use Flex in your projet.

Don't forget to install the JavaScript dependencies as well and compile

Available blocks

FAQ

A collection of question/answer.

The answer field uses the CKEditorType from FOSCKEditorBundle.

Image

An image with an alt field. The form type uses the MediaType from ArtgrisMediaBundle.

Images collection

A collection of images (without alt field, for the moment?). The form type uses the MediaCollectionType from ArtgrisMediaBundle.

Link

A simple URLs and it's associated label.

Quote

A blockquote and an optional author.

Triptych

A block composed of a title, a wysiwyg text, and an image with an alt field.

The text form type uses the CKEditorType from FOSCKEditorBundle.

The image form type uses the MediaType from ArtgrisMediaBundle.

Video

A link to YouTube or Vimeo to render a player in an iframe.

WYSIWYG

A WYSIWYG which uses the CKEditorType from FOSCKEditorBundle.

Customize blocks

FormType

You can use Symfony Form Type Extension to modify any of available form type.

Rendering

You can override any of the Twig template to customize the rendering of each block. The default path will be templates/bundles/UmanitBlockCollectionBundle/blocks/.

Utils - TwigRenderableTrait

If you need to create your own blocks, you can use the Umanit\BlockCollectionBundle\BlockManager\TwigRenderableTrait in your block manager.

It will allow you to use a Twig view to render your block. All you need to do is to define the property protected $template in your manager which should be the name of a view placed in templates/bundles/UmanitBlockCollectionBundle/blocks/ (without the suffix .html.twig).

For example, using this manager:

Once the entity and the form type are created, we only need to create the view templates/bundles/UmanitBlockCollectionBundle/blocks/simple.html.twig.


All versions of block-collection-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
umanit/block-bundle Version ^2.0
symfony/twig-bundle Version ^4.4|^5.2|^6.2
doctrine/doctrine-bundle Version ^1.12|^2.1
friendsofsymfony/ckeditor-bundle Version ^2.2
artgris/media-bundle Version ^5.2|^6.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 umanit/block-collection-bundle contains the following files

Loading the files please wait ....