PHPackages                             ingenious/classie - 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. ingenious/classie

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ingenious/classie
=================

Composer fork of desandro/classie

037JavaScript

Since Sep 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Gimcrack/classie)[ Packagist](https://packagist.org/packages/ingenious/classie)[ RSS](/packages/ingenious-classie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

classie - class helper functions
================================

[](#classie---class-helper-functions)

[Ripped from bonzo](https://github.com/ded/bonzo) ❤️ @ded

Forked by Jeremy Bloomstrom

```
classie.has( element, 'my-class' ) // returns true/false
classie.add( element, 'my-new-class' ) // add new class
classie.remove( element, 'my-unwanted-class' ) // remove class
classie.toggle( element, 'my-class' ) // toggle class
```

Package management
------------------

[](#package-management)

Install with [Bower](http://bower.io) 🐦 `bower install classie`

Install with [npm](https://github.com/npm/npm) `npm install desandro-classie`

Install with [Component](http://github.com/component/component) `component install desandro/classie`

Install with [Composer](http://getcomposer.org) `composer require ingenious/classie`

MIT license
-----------

[](#mit-license)

classie is released under the [MIT license](http://desandro.mit-license.org).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f8c400b0768dacb071aca3ca234b111e3feba19574ed608d3a96114054f120?d=identicon)[ingenious](/maintainers/ingenious)

---

Top Contributors

[![msb-jeremy](https://avatars.githubusercontent.com/u/18389776?v=4)](https://github.com/msb-jeremy "msb-jeremy (2 commits)")

### Embed Badge

![Health badge](/badges/ingenious-classie/health.svg)

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

###  Alternatives

[rossriley/phrocco

Literate documentation for PHP

963.0k](/packages/rossriley-phrocco)[3m5/typo3-enhanced-backend

Improves the user experience (UI/UX), provides customization options for editors and enhances the look and feel of TYPO3 backend.

105.1k](/packages/3m5-typo3-enhanced-backend)

PHPackages © 2026

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