PHPackages                             contao-community-alliance/merger2 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. contao-community-alliance/merger2

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

contao-community-alliance/merger2
=================================

Module merger V2 for Contao OpenSource CMS

4.3.1(1y ago)95.1k↓33.3%5[3 PRs](https://github.com/contao-community-alliance/merger2/pulls)LGPL-3.0-or-laterPHPPHP ^8.0CI passing

Since Nov 6Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/contao-community-alliance/merger2)[ Packagist](https://packagist.org/packages/contao-community-alliance/merger2)[ Docs](http://c-c-a.org)[ RSS](/packages/contao-community-alliance-merger2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (18)Versions (31)Used By (0)

[![Build Status](https://github.com/contao-community-alliance/merger2/actions/workflows/diagnostics.yml/badge.svg)](https://github.com/contao-community-alliance/merger2/actions)[![Latest Version tagged](https://camo.githubusercontent.com/1011f995b6eaa4a314992d772d345bc12c685fe25ce08fb9752df82c271a70de/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f636f6e74616f2d636f6d6d756e6974792d616c6c69616e63652f6d6572676572322e737667)](https://github.com/contao-community-alliance/merger2/tags)[![Latest Version on Packagist](https://camo.githubusercontent.com/8c05d44fce10886980e9d3c06fa9f58653874d054380dd865ede7f1991ab85f1/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e74616f2d636f6d6d756e6974792d616c6c69616e63652f6d6572676572322e737667)](https://packagist.org/packages/contao-community-alliance/merger2)[![Installations via composer per month](https://camo.githubusercontent.com/c69eeeadc631f2071e2428e2f24591a38e7d18f6be1a2c92d2082130648f2f4b/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f636f6e74616f2d636f6d6d756e6974792d616c6c69616e63652f6d6572676572322e737667)](https://packagist.org/packages/contao-community-alliance/merger2)

Merger²
=======

[](#merger)

The Contao Community Alliance merger² extension provides a powerful frontend module to merge various content:

- Article inheritance
- Conditional content
- Powerful condition language

Requirements
------------

[](#requirements)

Merger² v4 requires at least Contao 4.13 with PHP 7.4 or Contao 5 with PHP 8.0 higher and is prepared for the Contao Managed Edition.

Changelog
---------

[](#changelog)

See [CHANGELOG](CHANGELOG.md)

Documentation
-------------

[](#documentation)

The [documentation](https://github.com/contao-community-alliance/merger2/wiki) is managed as a wiki on Github. Feel free to contribute.

Condition Reference
-------------------

[](#condition-reference)

Each condition is an expression which may contain different functions. Function may be combined with `&&` or `||` constraints and you can turn back conditions with `!` as NOT.

### articleExists(column: `string` \[, includeUnpublished: `bool`\])

[](#articleexistscolumn-string--includeunpublished-bool)

Test if an article exists in the specific column or section.

- **column** Column or section name.
- **includeUnpublished** If true also unpublished articles are recognized.

### children(count: `integer` \[, includeUnpublished: `bool`\])

[](#childrencount-integer--includeunpublished-bool)

Test if the page have the specific count of children.

- **count** Count of children.
- **includeUnpublished** Include unpublished pages.

### depth(value: `string`)

[](#depthvalue-string)

Test the page depth.

- **value** Depth with comparing operator, e.g. "&gt;2".

### isMobile(\[cookieOnly: `bool`\])

[](#ismobilecookieonly-bool)

Detect if page is rendered as mobile page.

- **cookieOnly** If true only the TL\_VIEW cookie is recognized. Otherwise the user agent might active mobile view if an mobile layout exist.

### language(language: `string`)

[](#languagelanguage-string)

Test the page language.

- **language** Page language

### page(pageId: `string|integer`)

[](#pagepageid-stringinteger)

Test the page id or alias.

- **pageId** Page id or alias

### pageInPath(pageId: `string|integer`)

[](#pageinpathpageid-stringinteger)

Test if page id or alias is in path.

- **pageId** Page id or alias

### platform (platform: `string`)

[](#platform-platform-string)

Test the user platform.

- **platform** Platform type. Valid values are desktop, tablet, smartphone or mobile.

### root (pageId: `string|integer`)

[](#root-pageid-stringinteger)

Test the root page id or alias.

- **pageId** Page id or alias

Custom functions
----------------

[](#custom-functions)

Merger² is prepared for custom functions. Simply implement the `ContaoCommunityAlliance\Merger2\Functions\FunctionInterface`and provide it as a `cca.merger2.function` tagged service.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance64

Regular maintenance activity

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 68.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 ~162 days

Recently: every ~433 days

Total

21

Last Release

604d ago

Major Versions

3.0.11 → 4.0.0-alpha12017-10-04

PHP version history (5 changes)3.0.9PHP &gt;=5.3

4.0.0-alpha1PHP &gt;=5.6

4.0.0-rc1PHP &gt;=7.1

4.2.3PHP ^7.1 || ^8.0

4.3.1PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44649522?v=4)[xtra](/maintainers/xtra)[@xtra](https://github.com/xtra)

![](https://avatars.githubusercontent.com/u/10211934?v=4)[Chibineko](/maintainers/Chibineko)[@chibineko](https://github.com/chibineko)

![](https://avatars.githubusercontent.com/u/8189209?v=4)[netzmacht](/maintainers/netzmacht)[@netzmacht](https://github.com/netzmacht)

![](https://avatars.githubusercontent.com/u/8672569?v=4)[California College of Arts](/maintainers/cca)[@cca](https://github.com/cca)

---

Top Contributors

[![dmolineus](https://avatars.githubusercontent.com/u/1186266?v=4)](https://github.com/dmolineus "dmolineus (171 commits)")[![tristanlins](https://avatars.githubusercontent.com/u/343404?v=4)](https://github.com/tristanlins "tristanlins (57 commits)")[![zonky2](https://avatars.githubusercontent.com/u/1045318?v=4)](https://github.com/zonky2 "zonky2 (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![baumannsven](https://avatars.githubusercontent.com/u/2493263?v=4)](https://github.com/baumannsven "baumannsven (2 commits)")[![stefansl](https://avatars.githubusercontent.com/u/1564251?v=4)](https://github.com/stefansl "stefansl (2 commits)")

---

Tags

modulecontaothemelayout

### Embed Badge

![Health badge](/badges/contao-community-alliance-merger2/health.svg)

```
[![Health](https://phpackages.com/badges/contao-community-alliance-merger2/health.svg)](https://phpackages.com/packages/contao-community-alliance-merger2)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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