PHPackages                             contao-bootstrap/accordion - 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-bootstrap/accordion

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

contao-bootstrap/accordion
==========================

Bootstrap 5 accordion component for Contao CMS

3.1.0(2mo ago)01.5k↓33.3%3[1 PRs](https://github.com/contao-bootstrap/accordion/pulls)1LGPL-3.0-or-laterPHPPHP ^8.2CI passing

Since Jan 3Pushed 5d ago1 watchersCompare

[ Source](https://github.com/contao-bootstrap/accordion)[ Packagist](https://packagist.org/packages/contao-bootstrap/accordion)[ Fund](https://contao-bootstrap.de/mitmachen.html)[ GitHub Sponsors](https://github.com/dmolineus)[ RSS](/packages/contao-bootstrap-accordion/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (12)Versions (7)Used By (1)

Contao-Bootstrap Accordion
==========================

[](#contao-bootstrap-accordion)

[![Version](https://camo.githubusercontent.com/b45ad09e09a23068eef3e8dc65e844a29e8598768da184ea3ca9a4aa98cf4953/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e74616f2d626f6f7473747261702f6163636f7264696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](http://packagist.org/packages/contao-bootstrap/accordion)[![GitHub issues](https://camo.githubusercontent.com/4e8882553a0d7a8cdaa56b0c37d5d417cfeaf84e832f860a17183c10fe1fee78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f636f6e74616f2d626f6f7473747261702f6163636f7264696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/contao-bootstrap/accordion/issues)[![License](https://camo.githubusercontent.com/f5dde156a11004dbf287ef6c08d96a8105df4ae0b82a789058a6a0f3953803ab/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f6e74616f2d626f6f7473747261702f6163636f7264696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6963656e7365)](http://packagist.org/packages/contao-bootstrap/accordion)[![Build Status](https://camo.githubusercontent.com/cffea89d0c01bd9618833d8d0c4389a9b8a0d9041d570cfcd91931375b2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f636f6e74616f2d626f6f7473747261702f6163636f7264696f6e2f636f6e74616f2d626f6f747261702d6163636f7264696f6e3f6c6f676f3d676974687562616374696f6e73266c6f676f436f6c6f723d253233666666267374796c653d666f722d7468652d6261646765)](https://github.com/contao-bootstrap/accordion/actions)[![Downloads](https://camo.githubusercontent.com/840c6fed632aa758766e5c9562ad8ce16643ee21ca79bff1638a7b219e1f3000/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e74616f2d626f6f7473747261702f6163636f7264696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d446f776e6c6f616473)](http://packagist.org/packages/contao-bootstrap/accordion)

This extension provides Bootstrap integration into Contao.

Contao-Bootstrap is a modular integration. This extension provides the bootstrap accordion into Contao. It uses the default accordion element of Contao and extends it with an accordeon group element.

Changelog
---------

[](#changelog)

See [changelog](CHANGELOG.md)

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

[](#requirements)

- PHP ^8.2
- Contao ^5.3

Install
-------

[](#install)

### Managed edition

[](#managed-edition)

When using the managed edition it's pretty simple to install the package. Just search for the package in the Contao Manager and install it. Alternatively you can use the CLI.

```
# Using the contao manager
$ php contao-manager.phar.php composer require contao-bootstrap/accordion~2.0

# Using composer directly
$ php composer.phar require contao-bootstrap/accordion~2.0
```

### Symfony application

[](#symfony-application)

If you use Contao in a symfony application without contao/manager-bundle, you have to register following bundles manually:

```
class AppKernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new \ContaoCommunityAlliance\MetaPalettes\CcaMetaPalettesBundle(),
            new Netzmacht\Contao\Toolkit\Bundle\NetzmachtContaoToolkitBundle(),
            new ContaoBootstrap\Core\ContaoBootstrapCoreBundle(),
            new ContaoBootstrap\Grid\ContaoBootstrapAccordionBundle()
        ];
    }
}
```

Migration
---------

[](#migration)

To automatically migrate your accordion from Start- and Stop-Wrappers to nested fragments, you have to enable the migration by creating `config/packages/contao_bootstrap_accordion.yaml` with the following content:

```
contao_bootstrap_accordion:
    enable_wrapper_migration: true
```

Afterwards you can run the migration in the Contao Manager or via CLI.

Deprecated
----------

[](#deprecated)

The legacy content elements `bs_accordion_start`, `bs_accordion_end`, `bs_accordion_group_start` and `bs_accordion_group_end` are deprecated and will be removed in a future major version. Use `bs_accordion_wrapper`and `bs_accordion_group_wrapper` instead.

To disable the legacy elements now, set the following configuration:

```
contao_bootstrap_accordion:
    enable_legacy_elements: false
```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance94

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.8% 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 ~423 days

Total

3

Last Release

66d ago

PHP version history (2 changes)3.0.0PHP ^8.1

3.1.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![dmolineus](https://avatars.githubusercontent.com/u/1186266?v=4)](https://github.com/dmolineus "dmolineus (121 commits)")[![a-kehr](https://avatars.githubusercontent.com/u/17803079?v=4)](https://github.com/a-kehr "a-kehr (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![cboelter](https://avatars.githubusercontent.com/u/550207?v=4)](https://github.com/cboelter "cboelter (3 commits)")[![mj1985](https://avatars.githubusercontent.com/u/5830093?v=4)](https://github.com/mj1985 "mj1985 (2 commits)")

---

Tags

componentscontaobootstrapaccordion

### Embed Badge

![Health badge](/badges/contao-bootstrap-accordion/health.svg)

```
[![Health](https://phpackages.com/badges/contao-bootstrap-accordion/health.svg)](https://phpackages.com/packages/contao-bootstrap-accordion)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[contao-community-alliance/dc-general

Universal data container for Contao

1680.8k92](/packages/contao-community-alliance-dc-general)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3189.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)

PHPackages © 2026

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