PHPackages                             pixelopen/sulu-blockbundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pixelopen/sulu-blockbundle

ActiveLibrary

pixelopen/sulu-blockbundle
==========================

A Symfony Bundle for Sulu content management platform containing boilerplate blocks

2.6.5(7mo ago)350521MITTwigPHP ^8.1CI passing

Since Feb 10Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/Pixel-Open/sulu-blockbundle)[ Packagist](https://packagist.org/packages/pixelopen/sulu-blockbundle)[ RSS](/packages/pixelopen-sulu-blockbundle/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (8)Dependencies (11)Versions (10)Used By (1)

Sulu block bundle
=================

[](#sulu-block-bundle)

[![Minimum PHP Version](https://camo.githubusercontent.com/357e1362894d2b0c042b24ed31049fc4e8728b576aa06df54a59e7a0fb4f6aab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d677265656e)](https://php.net/)[![Minimum Sulu Version](https://camo.githubusercontent.com/51789883c0c5a0f58f6934939994ec393750c5d0435a6d66d046a824639a6530/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c752d253345253344253230322e352d677265656e)](https://symfony.com)[![GitHub release](https://camo.githubusercontent.com/60ec79583f8be36d7472f6975078b890118aa370adbefed133c268ea51d0c09d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4f70656e2f73756c752d626c6f636b62756e646c65)](https://github.com/Pixel-Open/sulu-blockbundle/releases)[![Quality Gate Status](https://camo.githubusercontent.com/0fdf36c996743abffee32fffe59f41ccdb98fc672c2e92eeda703ef98b350670/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d506978656c2d4f70656e5f73756c752d626c6f636b62756e646c65266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=Pixel-Open_sulu-blockbundle)

A bundle that allows to manage content block for the SULU CMS.

It is a fork from the  project.

1. Installation
---------------

[](#1-installation)

### Composer

[](#composer)

```
composer require pixelopen/sulu-block-bundle
```

2. Usage
--------

[](#2-usage)

### Template

[](#template)

Page template modification (mind to include this element: xmlns:xi="")

```

    default

    templates/default
    SuluWebsiteBundle:Default:index
    2400

        Default
        Standaard

                Content
                Inhoud

                Banners

```

### Twig

[](#twig)

Add blocks to the Twig

```
{% block content %}

        {{ content.title }}

            {{ content.article|raw }}

        {% include '@Block/html5-blocks.html.twig' %}
        {% include '@Block/html5-blocks.html.twig' with {element: 'aside', collection: 'banners'} %}

{% endblock %}
```

#### Override Twig templates

[](#override-twig-templates)

Create the following structure to override blocks via Twig `templates/bundles/PixelBlockBundle`. If you wish to override the following block `Resources/views/html5/parts/images.html.twig`, you must create the next file : `templates/bundles/PixelBlockBundle/html5/parts/images.html.twig`.

And if you only want to replace some of the template blocks in this bundle, you can extend the base template using this namespace `@!Block`.

For example

```
{# templates/bundles/PixelBlockBundle/html5/parts/images.html.twig #}
{% extends "@!Block/html5/parts/images.html.twig" %}

{% block image_source %}{{ image.thumbnails['50x50'] }}{% endblock %}
```

3. Available blocks
-------------------

[](#3-available-blocks)

- Rich text with a title (text)
- Images with a title (images)
- Images with a title and a rich text (image\_text)
- Image, title with sub-title and quote (image\_title\_subtitle\_quote)
- Youtube video (youtube)
- Link (link)
- Quote (quote)
- Before/After (image\_before\_after)
- Twi columns (two\_columns)
- Three columns (three\_columns)

4. Add properties
-----------------

[](#4-add-properties)

When you use a block and you want to add additional properties, you can configure them separately in `config/templates/PixelSuluBlockBundle/properties/{blockname}.xml`.

For instance, if you wish to add a caption to the images block, you will create the following fil in you customer application:

```

            Caption

```

5. Override properties parameters
---------------------------------

[](#5-override-properties-parameters)

### 5.1 Completely replace all parameters

[](#51-completely-replace-all-parameters)

When you use a block and you want to choose youself all the parameters to the blocks properties, you can configure them separately in `config/templates/PixelSuluBlockBundle/params/{blockname}.xml`. For example, if you want to define all the text editor property parameters, you will create the following file in you customer application:

```

```

### 5.2 Adjust parameters

[](#52-adjust-parameters)

When you use a block and you wish to edit parameters to the blocks properties, you can configure them in `config/templates/PixelSuluBlockBundle/params/{blockname}_adjustments.xml`.

For instance, if you want to adjust the height and deactivate the tab feature of the text editor property, you will create the following file in your customer application:

```

```

### 5.3 Add parameters

[](#53-add-parameters)

When you use a block and you want to add parameters to the blocks properties, you can separately configure them in `config/templates/PixelSuluBlockBundle/params/{blockname}_additions.xml`.

For instance, if you wish to add the ui\_color parameter to the text\_editor property, you will create the following file in your customer application:

```

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance63

Regular maintenance activity

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 92.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Recently: every ~75 days

Total

8

Last Release

227d ago

PHP version history (3 changes)2.5.7PHP ^7.4||^8.0

2.6.0PHP ^8.0

2.6.2PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2b87043ea111a9f5d76ffa990f48eea6e80576483c7bf33f0dcdd5a899c15c8?d=identicon)[pixeldev](/maintainers/pixeldev)

---

Top Contributors

[![matthieu2607](https://avatars.githubusercontent.com/u/14790414?v=4)](https://github.com/matthieu2607 "matthieu2607 (38 commits)")[![M-arcus](https://avatars.githubusercontent.com/u/25648755?v=4)](https://github.com/M-arcus "M-arcus (3 commits)")

---

Tags

sulu-bundle

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pixelopen-sulu-blockbundle/health.svg)

```
[![Health](https://phpackages.com/badges/pixelopen-sulu-blockbundle/health.svg)](https://phpackages.com/packages/pixelopen-sulu-blockbundle)
```

###  Alternatives

[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[sulu/article-bundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-bundle)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)[sulu/content-bundle

Experimental content implementation for sulu.

17112.3k1](/packages/sulu-content-bundle)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
