PHPackages                             samgranger/module-store-code-body-class - 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. samgranger/module-store-code-body-class

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

samgranger/module-store-code-body-class
=======================================

The Store Code Body Class module for Magento2 adds the website &amp; store code to the body class.

2.0.1(8y ago)3260.3k↓41.7%8MITPHP

Since Aug 10Pushed 8y ago4 watchersCompare

[ Source](https://github.com/samgranger/StoreCodeBodyClass)[ Packagist](https://packagist.org/packages/samgranger/module-store-code-body-class)[ RSS](/packages/samgranger-module-store-code-body-class/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/abccdfe09ad2e5633bf38534eae2fcb756f6904c4b2815106de627053c2d38d1/68747470733a2f2f706f7365722e707567782e6f72672f73616d6772616e6765722f6d6f64756c652d73746f72652d636f64652d626f64792d636c6173732f762f737461626c65)](https://packagist.org/packages/samgranger/module-store-code-body-class) [![Total Downloads](https://camo.githubusercontent.com/ab88e8ecf6b11ecdddcdaf82baf460de8b84dc92cdf823da845e06907ca0b394/68747470733a2f2f706f7365722e707567782e6f72672f73616d6772616e6765722f6d6f64756c652d73746f72652d636f64652d626f64792d636c6173732f646f776e6c6f616473)](https://packagist.org/packages/samgranger/module-store-code-body-class) [![Monthly Downloads](https://camo.githubusercontent.com/7d35a090a6e63e43c39755e9fd54fff3334882cbb790b902a7b38bad34da395a/68747470733a2f2f706f7365722e707567782e6f72672f73616d6772616e6765722f6d6f64756c652d73746f72652d636f64652d626f64792d636c6173732f642f6d6f6e74686c79)](https://packagist.org/packages/samgranger/module-store-code-body-class) [![License](https://camo.githubusercontent.com/89628f943cdf1795ae73d59b76f788f88ba6755ab2d65d31f1525b74e87045e8/68747470733a2f2f706f7365722e707567782e6f72672f73616d6772616e6765722f6d6f64756c652d73746f72652d636f64652d626f64792d636c6173732f6c6963656e7365)](https://packagist.org/packages/samgranger/module-store-code-body-class)

Magento 2 Store Code Body Class Plugin
======================================

[](#magento-2-store-code-body-class-plugin)

As the name suggests, this plugin simply adds the store &amp; website code to the body class.

Install
-------

[](#install)

```
composer require samgranger/module-store-code-body-class
php bin/magento setup:upgrade

```

You might have to clear Magento's cache after installation to see the changes depending on your situation.

License
-------

[](#license)

This module has been released under the MIT license.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% 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 ~48 days

Total

3

Last Release

3107d ago

Major Versions

1.0.0 → 2.0.02017-10-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2fea9e819c509f5aac5d5daff1de50818c5493ad1560ad604a960ec337b7f3d?d=identicon)[samgranger](/maintainers/samgranger)

---

Top Contributors

[![samweprovide](https://avatars.githubusercontent.com/u/67058700?v=4)](https://github.com/samweprovide "samweprovide (8 commits)")[![samgranger](https://avatars.githubusercontent.com/u/1847151?v=4)](https://github.com/samgranger "samgranger (5 commits)")[![danielozano](https://avatars.githubusercontent.com/u/7377826?v=4)](https://github.com/danielozano "danielozano (1 commits)")[![timneutkens](https://avatars.githubusercontent.com/u/6324199?v=4)](https://github.com/timneutkens "timneutkens (1 commits)")

---

Tags

magento2magento2-extensionmagento2-module

### Embed Badge

![Health badge](/badges/samgranger-module-store-code-body-class/health.svg)

```
[![Health](https://phpackages.com/badges/samgranger-module-store-code-body-class/health.svg)](https://phpackages.com/packages/samgranger-module-store-code-body-class)
```

###  Alternatives

[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)

PHPackages © 2026

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