PHPackages                             filipac/menu-active-check - 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. filipac/menu-active-check

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

filipac/menu-active-check
=========================

1.2.2(11y ago)030PHPPHP &gt;=5.4.0

Since Aug 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/filipac/menu-active-check)[ Packagist](https://packagist.org/packages/filipac/menu-active-check)[ RSS](/packages/filipac-menu-active-check/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

I had the following scenario: In a bootstrap admin theme I wanted the items in the Menu to pe marked as ACTIVE if I was on a certain controller. I had to write a lot of code everytime so i made a blade tag for quick access to the rule. Example how to use:

```

                        @lang('admin.menu.dashboard')

```

Explanation: if the current controller is DashboardController the script will echo "active" so that the menu highlights. You can replace `active` with any class you want to add to the active menu items. This is a quick and rough package so if you want to make impovements, fork commit &amp; merge request.

I wanted to have this for further Laravel projects.

Installation: Add `"filipac/menu-active-check": "~1.0"` to the require section of composer.json Run `composer update`In /app/config/app.php add the following to the end of **providers** array

```
'Filipac\MenuActiveCheck\MenuActiveCheckServiceProvider',

```

You are done, now you can use `{@checkActive ControllerName|css-active-class}` in your blade files!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~42 days

Total

6

Last Release

4097d ago

### Community

Maintainers

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

---

Top Contributors

[![filipac](https://avatars.githubusercontent.com/u/271155?v=4)](https://github.com/filipac "filipac (10 commits)")

---

Tags

laravel

### Embed Badge

![Health badge](/badges/filipac-menu-active-check/health.svg)

```
[![Health](https://phpackages.com/badges/filipac-menu-active-check/health.svg)](https://phpackages.com/packages/filipac-menu-active-check)
```

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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