PHPackages                             heimrichhannot/contao-components - 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. heimrichhannot/contao-components

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

heimrichhannot/contao-components
================================

Components is a contao extension that gives better control over javascript and css invocation within page layouts.

2.2.2(2y ago)124.8k[1 issues](https://github.com/heimrichhannot/contao-components/issues)4LGPL-3.0+PHPPHP ~5.4 || ~7.0 || ^8.0

Since Mar 21Pushed 2y ago4 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-components)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-components)[ Docs](https://github.com/heimrichhannot/contao-components)[ RSS](/packages/heimrichhannot-contao-components/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (14)Used By (4)

Components
==========

[](#components)

Components is a contao extension that gives better control over javascript and css invocation within page layouts. If you register your javascript and css files as component, it is possible to disable the component for each layout.

Technical instruction
---------------------

[](#technical-instruction)

To disable custom js/css components, register them within '$GLOBALS\['TL\_COMPONENTS'\]'.

The following example is taken from [heimrichhannot/contao-bootstrapper](https://packagist.org/packages/heimrichhannot/contao-bootstrapper).

```
$GLOBALS['TL_COMPONENTS'] = array
(
		'bs.inputSlider' => array
     	(
     		'js'  => array
     		(
     			'files' => array
     			(
     				'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/bootstrap-slider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
     				BOOTSTRAPPER_JS_COMPONENT_DIR . '/input-slider/bs.inputSlider' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
     			),
     		),
     		'css' => array
     		(
     			'files' => array
     			(
     				'system/modules/bootstrapper/assets/vendor/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css|screen|static',
     			)
     		),
     	),
     	'bs.tooltip' => array
     	(
     		'js'  => array
     		(
     			'files' => array
     			(
     				BOOTSTRAPPER_JS_COMPONENT_DIR . '/tooltip/bs.tooltip' . (!$GLOBALS['TL_CONFIG']['debugMode'] ? '.min' : '') . '.js|static',
     			),
     		)
     	),
     	'modernizr'         => array
     	(
     		'js' => array
     		(
     			'files' => array
     			(
     				'system/modules/bootstrapper/assets/vendor/modernizr.min.js|static',
     			),
     			'before'  => 0, // invoke always before jquery of the given key
     			//'after'  => 'bs.core', // invoke always after bs.core
     		),
     	),
);

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~215 days

Recently: every ~554 days

Total

13

Last Release

802d ago

Major Versions

1.1.0 → 2.0.02017-11-06

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0, &lt;7

1.0.1PHP ~5.4 || ~7.0

2.2.0PHP ~5.4 || ~7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![ericges](https://avatars.githubusercontent.com/u/25957923?v=4)](https://github.com/ericges "ericges (3 commits)")

---

Tags

javascriptcsscontaolayoutfrontend

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-components/health.svg)

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

###  Alternatives

[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[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)[oveleon/contao-component-style-manager

Style and CSS-Class Manager for Contao Open Source CMS

2538.4k9](/packages/oveleon-contao-component-style-manager)[machy8/webloader

Simple, easy to use, php bundler for javascript and css

1936.4k3](/packages/machy8-webloader)[terminal42/contao-inserttags

Contao extension to create custom insert tags.

1251.8k](/packages/terminal42-contao-inserttags)

PHPackages © 2026

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