PHPackages                             lionel/classjs - 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. lionel/classjs

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

lionel/classjs
==============

This extension adds the class "no-js" to the html tag and replaces it with the class "js" if JavaScript is enabled.

3.0.0(9y ago)035MITPHPPHP &gt;=5.4.0

Since Jun 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lionel-m/classjs)[ Packagist](https://packagist.org/packages/lionel/classjs)[ RSS](/packages/lionel-classjs/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Add the class "no-js" or "js" if JavaScript is enabled or not ([Contao CMS](https://contao.org/en))
---------------------------------------------------------------------------------------------------

[](#add-the-class-no-js-or-js-if-javascript-is-enabled-or-not-contao-cms)

[![Latest Stable Version](https://camo.githubusercontent.com/b4f056d2588ff3aa1d4ef471fc5f8603f25614ca6b7f37ccd3108a17fa6e3170/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e656c2f636c6173736a732f762f737461626c65)](https://packagist.org/packages/lionel/classjs)[![License](https://camo.githubusercontent.com/a3a2b37686e4210869fbeeb2e02c9381275e6398974f46f9f176f67bf8052170/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e656c2f636c6173736a732f6c6963656e7365)](https://packagist.org/packages/lionel/classjs)

This extension adds the default `no-js` class. It replaces the class `no-js` with `js` if JavaScript is enabled.

```

...

```

### Installation

[](#installation)

Add `"lionel/classjs": "~3.0"` in the `composer.json` file.

Add `new LionelM\ClassJsBundle\LionelMClassJsBundle(),` in the `app/AppKernel.php` file.

Run the command `php composer.phar update classjs`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

3387d ago

Major Versions

2.0.0 → 3.0.02017-02-03

PHP version history (2 changes)2.0.0PHP &gt;=5.3

3.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/02affd19f404be1936e3e1bfb9df0245f68c010516e8971e29a9c48ecfb62fe4?d=identicon)[lionel](/maintainers/lionel)

---

Top Contributors

[![lionel-m](https://avatars.githubusercontent.com/u/814476?v=4)](https://github.com/lionel-m "lionel-m (12 commits)")

---

Tags

contaosymfony-bundleJSclassjs

### Embed Badge

![Health badge](/badges/lionel-classjs/health.svg)

```
[![Health](https://phpackages.com/badges/lionel-classjs/health.svg)](https://phpackages.com/packages/lionel-classjs)
```

###  Alternatives

[nnnick/chartjs

Simple HTML5 charts using the canvas element.

67.3k1.1M15](/packages/nnnick-chartjs)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[mathjax/mathjax

MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.

10.8k90.8k1](/packages/mathjax-mathjax)[nostalgiaz/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

5.0k362.3k4](/packages/nostalgiaz-bootstrap-switch)[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

2899.6M48](/packages/yajra-laravel-datatables-html)

PHPackages © 2026

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