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

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

heimrichhannot/contao-mediaquery
================================

Contao library that sets an cookie via javascript to check browser viewport dimension in php.

1.1.0(6y ago)2156LGPL-3.0-or-laterPHP

Since Sep 18Pushed 6y ago8 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

Contao MediaQuery
=================

[](#contao-mediaquery)

Contao library that sets an cookie via javascript containing browser dimension to check browser viewport dimension in php.

Currently supported
-------------------

[](#currently-supported)

- width/max-width/max-device-width check
- height/max-height/max-device-height check

For detailed usage check 'HeimrichHannot\\MediaQuery\\ViewportTest.php'.

Usage
-----

[](#usage)

```
\HeimrichHannot\MediaQuery\Viewport::matchQuery('(min-width: 800px and max-width: 1300px)');

```

Will return true if current browser dimension is between 800px and 1300px, otherwise false.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

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

Total

2

Last Release

2314d ago

### 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 (2 commits)")

---

Tags

contaomediaqueryviewsport

### Embed Badge

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

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

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)

PHPackages © 2026

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