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

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

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

A shim repositoy for modernizr as contao component.

1.0.1(6y ago)01.0kMIT

Since Jul 12Pushed 6y ago3 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Modernizr Contao Component
==========================

[](#modernizr-contao-component)

A shim repositoy for [Modernizr](https://modernizr.com) as contao component.

Please see [modernizr-config.json](dist/modernizr-config.json) for included features and options for this modernizr build.

Install
-------

[](#install)

```
composer require heimrichhannot-contao-components/modernizr

```

Usage
-----

[](#usage)

Add following line to your config.php:

```
// Contao 4:
// src/Ressources/contao/config/config.php
$GLOBALS['TL_JAVASCRIPT']['modernizr'] = 'assets/modernizr/dist/modernizr-custom.js|static';

// Contao 3:
// config/config.php
$GLOBALS['TL_JAVASCRIPT']['modernizr'] = 'assets/components/modernizr/dist/modernizr-custom.js|static';
```

Internal
--------

[](#internal)

[Download-Url](https://modernizr.com/download/?-applicationcache-audio-backgroundsize-borderimage-borderradius-boxshadow-canvas-canvastext-cssanimations-csscolumns-cssgradients-csspositionsticky-cssreflections-csstransforms-csstransforms3d-csstransitions-flexbox-fontface-generatedcontent-geolocation-hashchange-history-hsla-indexeddb-inlinesvg-input-inputtypes-localstorage-multiplebgs-opacity-postmessage-rgba-sessionstorage-smil-svg-svgclippaths-textshadow-touchevents-video-webgl-websockets-websqldatabase-webworkers-addtest-domprefixes-hasevent-mq-prefixed-prefixes-setclasses-shiv-testallprops-testprop-teststyles) for updating builds while keeping the config.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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 ~167 days

Total

3

Last Release

2525d ago

Major Versions

0.1.0 → 1.0.02018-07-12

### Community

Maintainers

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

---

Top Contributors

[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (6 commits)")

---

Tags

shimjavascriptcontaocontao-componentmodernizr

### Embed Badge

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

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

###  Alternatives

[symfony/polyfill-mbstring

Symfony polyfill for the Mbstring extension

7.8k1.2B515](/packages/symfony-polyfill-mbstring)[symfony/polyfill-php72

Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions

4.8k674.7M31](/packages/symfony-polyfill-php72)[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k774.6M90](/packages/symfony-polyfill-intl-idn)[symfony/polyfill-intl-normalizer

Symfony polyfill for intl's Normalizer class and related functions

2.1k830.2M36](/packages/symfony-polyfill-intl-normalizer)[symfony/polyfill-php80

Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions

1.7k815.2M455](/packages/symfony-polyfill-php80)[symfony/polyfill-intl-grapheme

Symfony polyfill for intl's grapheme\_\* functions

1.7k702.8M27](/packages/symfony-polyfill-intl-grapheme)

PHPackages © 2026

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