PHPackages                             rtmatt/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. rtmatt/body-class

AbandonedArchivedLibrary

rtmatt/body-class
=================

quick browser body class service provider for laravel 5

1.0.1(10y ago)0281MITPHPPHP &gt;=5.3.0

Since Feb 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rtmatt/body_class)[ Packagist](https://packagist.org/packages/rtmatt/body-class)[ RSS](/packages/rtmatt-body-class/feed)WikiDiscussions master Synced 1mo ago

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

Body Class
==========

[](#body-class)

Laravel Service provider built around [Agent](https://github.com/jenssegers/agent) to add browser classes to the body HTML tag.

Installation
------------

[](#installation)

Install using composer:

```
$ composer require rtmatt/body-class
```

Add service provider to `config/app.php `

```
Rtmatt\BodyClass\BodyClassServiceProvider::class
```

Usage
-----

[](#usage)

This requires your layout file to be `/resources/views/layouts/main.blade.php`. Support for multiple or other layouts may come in the future.

In file mentioned above, add the following to your body tag:

```

```

You are good to go!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~0 days

Total

3

Last Release

3747d ago

Major Versions

0.1.0 → 1.0.02016-02-03

### Community

Maintainers

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

---

Top Contributors

[![mattack](https://avatars.githubusercontent.com/u/5455209?v=4)](https://github.com/mattack "mattack (5 commits)")[![rtmatt](https://avatars.githubusercontent.com/u/12945032?v=4)](https://github.com/rtmatt "rtmatt (4 commits)")

### Embed Badge

![Health badge](/badges/rtmatt-body-class/health.svg)

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

###  Alternatives

[pragmarx/tracker

A Laravel Visitor Tracker

2.9k300.0k1](/packages/pragmarx-tracker)[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[cagilo/cagilo

A set of open-source Blade components for the Laravel Framework

172996.5k](/packages/cagilo-cagilo)[joaopaulolndev/filament-edit-profile

Filament package to edit profile

250258.1k34](/packages/joaopaulolndev-filament-edit-profile)[kyon147/laravel-shopify

Shopify package for Laravel to aide in app development

473252.9k](/packages/kyon147-laravel-shopify)[akaunting/laravel-language

Language switcher package for Laravel

223285.2k1](/packages/akaunting-laravel-language)

PHPackages © 2026

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