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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rtmatt/body-class

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

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 2w 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 47% 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

3792d 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

[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[open-southeners/laravel-companion-apps

Extend your Laravel applications with companions apps (Android, iOS, PWA...)

234.2k](/packages/open-southeners-laravel-companion-apps)[cleaniquecoders/shrinkr

Shrinkr is a Laravel package for shortening URLs, with custom slugs, analytics, branded domains, and seamless API integration.

155.5k](/packages/cleaniquecoders-shrinkr)[outhebox/nova-fields-agent

This field give the ability to hide fields from your resources table on mobile screens for a better responsive concept

101.1k](/packages/outhebox-nova-fields-agent)

PHPackages © 2026

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